Click here to Skip to main content
15,907,395 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: HOW DO I DO IT ???? Pin
Malcolm McMahon30-Aug-01 2:07
Malcolm McMahon30-Aug-01 2:07 
AnswerRe: HOW DO I DO IT ???? Pin
Michael Martin30-Aug-01 2:10
professionalMichael Martin30-Aug-01 2:10 
GeneralMSFlexgrid(rowselection) Pin
30-Aug-01 1:26
suss30-Aug-01 1:26 
GeneralRe: MSFlexgrid(rowselection) Pin
ORi x30-Aug-01 1:42
ORi x30-Aug-01 1:42 
Generalproblem in formview Pin
30-Aug-01 1:20
suss30-Aug-01 1:20 
GeneralXML insertBefore Pin
Jimmy Ehrnström30-Aug-01 0:43
Jimmy Ehrnström30-Aug-01 0:43 
GeneralRe: XML insertBefore Pin
Alwin7530-Aug-01 3:34
Alwin7530-Aug-01 3:34 
GeneralRe: XML insertBefore Pin
Jimmy Ehrnström30-Aug-01 3:47
Jimmy Ehrnström30-Aug-01 3:47 
Thanks for your help.

The problem was that I did not know what to initiate the second parameter (varBeforeNode) with. After a lot of experimenting I found that it worked if I created a VARIANT and initiated it with the node pointer and set the variant type to unknown. Like this:

VARIANT var;
var.byref = myNodePtr;
var.vt = VT_UNKNOWN;
parentNodePtr->insertBefore(pNewNode, var);


I figured this out just a few minutes ago and hopefully this example will help others save some time. If anyone's looking for an example I could send you some code. Just drop me a line.
GeneralDEBUG !!! Pin
Hadi Rezaee30-Aug-01 0:31
Hadi Rezaee30-Aug-01 0:31 
GeneralRe: DEBUG !!! Pin
Christian Graus30-Aug-01 1:29
protectorChristian Graus30-Aug-01 1:29 
GeneralCHTMLView And Toolbars Pin
AJ12330-Aug-01 0:16
AJ12330-Aug-01 0:16 
GeneralRe: CHTMLView And Toolbars Pin
Tomasz Sowinski30-Aug-01 2:25
Tomasz Sowinski30-Aug-01 2:25 
Generalreading variable value in watch debug window Pin
Bartek29-Aug-01 23:27
Bartek29-Aug-01 23:27 
GeneralRe: reading variable value in watch debug window Pin
Tomasz Sowinski30-Aug-01 2:03
Tomasz Sowinski30-Aug-01 2:03 
GeneralRe: reading variable value in watch debug window Pin
Bartek30-Aug-01 2:23
Bartek30-Aug-01 2:23 
GeneralRe: reading variable value in watch debug window Pin
Tomasz Sowinski30-Aug-01 2:34
Tomasz Sowinski30-Aug-01 2:34 
GeneralRe: reading variable value in watch debug window Pin
Bartek30-Aug-01 2:43
Bartek30-Aug-01 2:43 
QuestionWhat is "shell" (in Windows)? Pin
Maer72729-Aug-01 23:26
Maer72729-Aug-01 23:26 
AnswerRe: What is Pin
Tomasz Sowinski30-Aug-01 1:44
Tomasz Sowinski30-Aug-01 1:44 
GeneralRe: What is Pin
Maer72730-Aug-01 3:26
Maer72730-Aug-01 3:26 
GeneralRe: What is Pin
Tomasz Sowinski30-Aug-01 3:37
Tomasz Sowinski30-Aug-01 3:37 
GeneralRe: What is Pin
Maer72730-Aug-01 16:22
Maer72730-Aug-01 16:22 
GeneralRe: Chenge Edit Box color Pin
30-Aug-01 1:31
suss30-Aug-01 1:31 
GeneralClassview not showing.. Pin
29-Aug-01 22:41
suss29-Aug-01 22:41 
GeneralRe: Classview not showing.. Pin
Ghasrfakhri29-Aug-01 22:51
Ghasrfakhri29-Aug-01 22:51 

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.