Click here to Skip to main content
15,868,141 members
Home / Discussions / C#
   

C#

 
QuestionHow do convert and object to binary? Pin
AndyASPVB20-Sep-09 1:07
AndyASPVB20-Sep-09 1:07 
AnswerRe: How do convert and object to binary? Pin
Eddy Vluggen20-Sep-09 1:26
professionalEddy Vluggen20-Sep-09 1:26 
GeneralRe: How do convert and object to binary? Pin
AndyASPVB20-Sep-09 1:44
AndyASPVB20-Sep-09 1:44 
GeneralRe: How do convert and object to binary? Pin
OriginalGriff20-Sep-09 2:49
mveOriginalGriff20-Sep-09 2:49 
GeneralRe: How do convert and object to binary? Pin
Eddy Vluggen20-Sep-09 3:08
professionalEddy Vluggen20-Sep-09 3:08 
GeneralRe: How do convert and object to binary? Pin
AndyASPVB20-Sep-09 3:32
AndyASPVB20-Sep-09 3:32 
GeneralRe: How do convert and object to binary? Pin
Eddy Vluggen20-Sep-09 3:54
professionalEddy Vluggen20-Sep-09 3:54 
Questioncannot convert from string to System.IntPtr Pin
steve_rm20-Sep-09 0:54
steve_rm20-Sep-09 0:54 
Hello,

I have a P/Invoke to a C++ function:
int dll_registerAccount(char* uri, char* reguri, char*);


So I have done this:
[DllImport("pjsipDlld")]
static extern int dll_registerAccount(IntPtr uri, 
                                      IntPtr reguri);


When I use this in my code:
success = dll_registerAccount("Bob", "Joe");


I get the following error message:
cannot convert from string to System.IntPtr

Am I going about this the wrong way?

Many thanks for any advice,
AnswerRe: cannot convert from string to System.IntPtr Pin
Dave Kreskowiak20-Sep-09 2:19
mveDave Kreskowiak20-Sep-09 2:19 
AnswerRe: cannot convert from string to System.IntPtr Pin
Luc Pattyn20-Sep-09 2:41
sitebuilderLuc Pattyn20-Sep-09 2:41 
QuestionHow to start working on Crystal Report? Pin
CoderForEver19-Sep-09 23:48
CoderForEver19-Sep-09 23:48 
AnswerRe: How to start working on Crystal Report? Pin
Nagy Vilmos20-Sep-09 0:34
professionalNagy Vilmos20-Sep-09 0:34 
GeneralRe: How to start working on Crystal Report? Pin
CoderForEver20-Sep-09 0:47
CoderForEver20-Sep-09 0:47 
GeneralRe: How to start working on Crystal Report? Pin
Nagy Vilmos20-Sep-09 0:52
professionalNagy Vilmos20-Sep-09 0:52 
QuestionQuestion about AutoResetEvent Pin
Xmen Real 19-Sep-09 22:37
professional Xmen Real 19-Sep-09 22:37 
AnswerRe: Question about AutoResetEvent Pin
Nicholas Butler20-Sep-09 0:42
sitebuilderNicholas Butler20-Sep-09 0:42 
GeneralRe: Question about AutoResetEvent Pin
Xmen Real 20-Sep-09 6:45
professional Xmen Real 20-Sep-09 6:45 
QuestionTransparency on moving controls? Pin
Sindicoro19-Sep-09 20:09
Sindicoro19-Sep-09 20:09 
AnswerRe: Transparency on moving controls? Pin
Henry Minute19-Sep-09 20:57
Henry Minute19-Sep-09 20:57 
QuestionHelp with passing an array to a method Pin
Ceceily19-Sep-09 18:01
Ceceily19-Sep-09 18:01 
AnswerRe: Help with passing an array to a method Pin
Luc Pattyn19-Sep-09 18:13
sitebuilderLuc Pattyn19-Sep-09 18:13 
GeneralRe: Help with passing an array to a method Pin
Ceceily19-Sep-09 18:32
Ceceily19-Sep-09 18:32 
GeneralRe: Help with passing an array to a method Pin
Ceceily19-Sep-09 19:18
Ceceily19-Sep-09 19:18 
Questionretreiving values from datatable Pin
Rabia_Arif19-Sep-09 17:53
Rabia_Arif19-Sep-09 17:53 
AnswerRe: retreiving values from datatable Pin
Henry Minute19-Sep-09 21:15
Henry Minute19-Sep-09 21:15 

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.