Search:
Type: Posts; User: clow
Search:
Search took 0.02 seconds.
-
February 8th, 2016, 12:36 PM
one last question.. when I attempt to NULL terminate I get this compilation error:
error: invalid operands to binary * (have ‘uint8_t ** {aka unsigned char **}’ and ‘uint32_t {aka unsigned...
-
February 8th, 2016, 12:25 PM
sorry it worked.. I was trying to debug optimized code I think
-
February 8th, 2016, 11:54 AM
declared before function:
uint8_t* message = NULL;
passed into function:
-
February 8th, 2016, 11:02 AM
Hi 2kaud,
The memcpy seems not to work in your code above. "message" is passed is as:
uint8_t** message
when I run the code and look at "*message" in the debugger, there is nothing...
-
February 5th, 2016, 04:48 PM
Victor, I don't understand what you are asking?
-
February 5th, 2016, 04:33 PM
message is passed in as:
uint8_t** message
The code works if I malloc (size+1) and recv (size+1)....
-
February 5th, 2016, 03:38 PM
one interesting thing to note that "bytes" is 35 when ret is 35.. however bytes is 37 when ret is 36..
I imagine my snprintf is messed up somehow.
Anyone know what I did incorrect?
Thanks!
-
February 5th, 2016, 03:26 PM
Hello all,
I have code to read in a message via tcp/ip as show below:
// keep reading until "size" bytes received
bytes = 0;
while(bytes < size)
{
-
January 20th, 2016, 10:42 AM
lol super confused, can you provide example code?
-
January 20th, 2016, 10:34 AM
Hello,
I have an int with a value say "1234" and I want that int to be a string like this with 8 bytes:
00001234
I have this working with a string of size 8 like this:
-
January 15th, 2016, 03:34 PM
You guys are both fast and great help :) Thanks!
-
January 15th, 2016, 02:03 PM
Hello,
I want to convert an int to char[] array that is 8 bytes long, and I want to pad the array with 0's if the number to convert is less than 8 characters. For example:
1234 would be...
-
December 29th, 2015, 09:59 AM
Hello,
I have the following code:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
-
December 17th, 2015, 03:21 PM
Hello,
In C I have a char* that looks like this:
char* text = "<tag1>3143523532</tag1><tag2>this is a test</tag2><tag3>another test!!</tag3>"
and I have the variables:
-
December 17th, 2015, 12:02 PM
do you have an example of how to use shared memory for my sample code?
-
December 17th, 2015, 11:47 AM
Hello,
I created a shared library in Linux like this:
mysharedlib.h:
int test;
void PrintTestValue();
-
September 5th, 2014, 05:50 PM
Hello,
Below is my implementation of a Binary Search Tree, but there is a bug in the DeleteNode() function. It does not set the parent's pointer to NULL as I intended. Can anyone explain why this...
-
August 21st, 2014, 06:50 AM
Yes. Is the way I posted above the best way?
-
August 19th, 2014, 02:24 PM
unsigned char*.
Right now I think I figured out a way, but it might not be optimal:
string temp;
for(vector<unsigned char*>::iterator it = vec.begin(); it != vec.end(); it++)
...
-
August 19th, 2014, 01:19 PM
Hello I have a vector<unsigned char*> and I want to convert it to a std::string. How can I do that?
-
August 19th, 2014, 12:57 PM
Hello,
I have a vector<vector<unsigned char> > and I want to convert it to a vector<unsigned char*>. Can anyone provide sample code of how this is done?
Thanks!
Charles
-
April 14th, 2014, 12:08 PM
Hello,
In my class:
class SettingsDialog : public CDialogEx
I have:
-
January 27th, 2014, 09:23 AM
Putting UpdateData() at the beginning of the handler had mixed results. First when I click IDC_RADIO_TWO then IDC_RADIO_THREE is selected. Also, IDC_RADIO_ONE stays selected also, until I move my...
-
January 27th, 2014, 09:12 AM
So where do I call UpdateData() at exactly? I changed the code to:
void RadioDialog::OnBnClickedRadioSelection()
{
if(iRadioSelection_== 0)
{...
-
January 27th, 2014, 08:52 AM
Hello,
I have a group of 3 radio buttons with IDs:
IDC_RADIO_ONE
IDC_RADIO_TWO
IDC_RADIO_THREE
|
Click Here to Expand Forum to Full Width
|