Click here to Skip to main content
15,915,764 members
Home / Discussions / COM
   

COM

 
Questionhow to drag and drop xml element from treeview to web browser control Pin
fadi moon8-Dec-05 1:02
fadi moon8-Dec-05 1:02 
QuestionE-Book for ActiveX Programming Pin
Rajkamal_dfine6-Dec-05 18:08
Rajkamal_dfine6-Dec-05 18:08 
AnswerRe: E-Book for ActiveX Programming Pin
Amol Ravatale7-Dec-05 0:20
Amol Ravatale7-Dec-05 0:20 
QuestionLPSTR and LPBYTE passing to a dll Pin
Paul_5916-Dec-05 6:33
Paul_5916-Dec-05 6:33 
AnswerRe: LPSTR and LPBYTE passing to a dll Pin
JonEngle6-Dec-05 7:05
JonEngle6-Dec-05 7:05 
GeneralRe: LPSTR and LPBYTE passing to a dll Pin
Paul_5916-Dec-05 8:40
Paul_5916-Dec-05 8:40 
GeneralRe: LPSTR and LPBYTE passing to a dll Pin
JonEngle6-Dec-05 9:12
JonEngle6-Dec-05 9:12 
GeneralRe: LPSTR and LPBYTE passing to a dll Pin
Paul_5916-Dec-05 9:50
Paul_5916-Dec-05 9:50 
Fantastic. That seems to work a treat.
However, on the inside of the dll, the first function is this..

API seed2key (char *param, BYTE *key)
{
BYTE seed[16];
DWORD i, retLen, seedLen;
BYTE *scanPtr;


i = 0;
scanPtr = strtok(param, " \t\n");
while (scanPtr && i < 16) {
seed[i] = atoi(scanPtr);
scanPtr = strtok(NULL, " \t\n");
i++;
}

seedLen = i;

seedToKey (seed, seedLen, key, &retLen);

return (retLen);
}

the while loop iterates once through correctly, but on the second time the string tokenizer returns 0x0000000 into scanPtr.
When you hover over it in VS, the tooltip says. [scanPtr = 0x00000000 <bad ptr="">].

The above section of code seems to suggest that it is actually requiring a string with the delimeters " ", tab and newline.
Rather confusing - although seemingly a different issue, any ideas?

Thanks for the previous posts!

Paul.
GeneralRe: LPSTR and LPBYTE passing to a dll Pin
JonEngle6-Dec-05 10:27
JonEngle6-Dec-05 10:27 
QuestionDLLHost.exe Terminates on Windows Server 2003 Pin
Gupta Suraj5-Dec-05 19:15
Gupta Suraj5-Dec-05 19:15 
QuestionHow &quot;DCOM server process launcher&quot; works? Pin
Chintoo7235-Dec-05 17:30
Chintoo7235-Dec-05 17:30 
AnswerRe: How &amp;quot;DCOM server process launcher&amp;quot; works? Pin
Chintoo7235-Dec-05 17:44
Chintoo7235-Dec-05 17:44 
QuestionOut-of-process COM in C# Pin
london_ste2-Dec-05 4:57
london_ste2-Dec-05 4:57 
AnswerRe: Out-of-process COM in C# Pin
Lim Bio Liong5-Dec-05 13:13
Lim Bio Liong5-Dec-05 13:13 
GeneralRe: Out-of-process COM in C# Pin
london_ste8-Dec-05 6:17
london_ste8-Dec-05 6:17 
GeneralRe: Out-of-process COM in C# Pin
Lim Bio Liong8-Dec-05 16:03
Lim Bio Liong8-Dec-05 16:03 
Questionwhy to put extern C before const IID? Pin
Lane Yu1-Dec-05 23:32
Lane Yu1-Dec-05 23:32 
AnswerRe: why to put extern C before const IID? Pin
Marco M.6-Dec-05 8:33
Marco M.6-Dec-05 8:33 
Questionis it possible to Call web-service from COM component? Pin
Amol Ravatale29-Nov-05 18:34
Amol Ravatale29-Nov-05 18:34 
AnswerRe: is it possible to Call web-service from COM component? Pin
Lim Bio Liong29-Nov-05 19:06
Lim Bio Liong29-Nov-05 19:06 
GeneralServiced Component, Excel and OleDbConnection.Open Pin
Turtle Hand28-Nov-05 9:45
Turtle Hand28-Nov-05 9:45 
GeneralRe: Serviced Component, Excel and OleDbConnection.Open Pin
Turtle Hand1-Dec-05 4:14
Turtle Hand1-Dec-05 4:14 
QuestionEvent sink in MFC-program - Thread problem? Pin
-Tom-26-Nov-05 4:25
-Tom-26-Nov-05 4:25 
AnswerRe: Event sink in MFC-program - Thread problem? Pin
Roger Stoltz5-Dec-05 5:27
Roger Stoltz5-Dec-05 5:27 
QuestionPorting Win32/COM to Linux Pin
Jnewg526-Nov-05 1:24
Jnewg526-Nov-05 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.