Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
AnswerNevermind, found the answer Pin
blakeb_115-Sep-04 6:14
blakeb_115-Sep-04 6:14 
GeneralRe: Nevermind, found the answer Pin
Heath Stewart15-Sep-04 6:59
protectorHeath Stewart15-Sep-04 6:59 
GeneralRe: Nevermind, found the answer Pin
blakeb_117-Sep-04 5:34
blakeb_117-Sep-04 5:34 
GeneralScene change detection doubt Pin
ee9903515-Sep-04 5:55
ee9903515-Sep-04 5:55 
GeneralRe: Scene change detection doubt Pin
Heath Stewart15-Sep-04 6:54
protectorHeath Stewart15-Sep-04 6:54 
GeneralRe: Scene change detection doubt Pin
ee9903515-Sep-04 8:04
ee9903515-Sep-04 8:04 
GeneralRe: Scene change detection doubt Pin
Manajit19-May-10 20:04
Manajit19-May-10 20:04 
GeneralLPWSTR in C# Pin
yyf15-Sep-04 5:41
yyf15-Sep-04 5:41 
This is the API I want to use:

long LoginDlg<br />
(<br />
   long    lDSType,<br />
   LPTSTR  lptstrDataSource,  <br />
   long    lDSLength,<br />
   LPCTSTR lpctstrUsername,  <br />
   LPCTSTR lpctstrPassword,<br />
)


I wrap it like this:
[DllImport("user.dll")]
int LoginDlg<br />
(<br />
   int    lDSType,<br />
   stringlptstrDataSource,  <br />
   int    lDSLength,<br />
   stringlpctstrUsername,  <br />
   stringlpctstrPassword,<br />
)


Now I got the new version of this api, the only difference is using LPWSTR instead of LPTSTR
long LoginDlg<br />
(<br />
   long    lDSType,<br />
   LPWSTR  lptstrDataSource,  <br />
   long    lDSLength,<br />
   LPCWSTR lpctstrUsername,  <br />
   LPCWSTR lpctstrPassword,<br />
)


I use the same wrapper, it doesn't work as usual. Do you have any ideas what's wrong with my wrapper?

Thanks in advance.
GeneralRe: LPWSTR in C# Pin
Heath Stewart15-Sep-04 7:10
protectorHeath Stewart15-Sep-04 7:10 
GeneralRe: LPWSTR in C# Pin
yyf15-Sep-04 9:43
yyf15-Sep-04 9:43 
GeneralRe: LPWSTR in C# Pin
Heath Stewart15-Sep-04 10:16
protectorHeath Stewart15-Sep-04 10:16 
GeneralRe: How to change the text of a text object at runtime in crystal reports for .NET (C#) Pin
Dave Kreskowiak15-Sep-04 3:56
mveDave Kreskowiak15-Sep-04 3:56 
GeneralRe: wall on this one:simple string search question Pin
sreejith ss nair15-Sep-04 3:46
sreejith ss nair15-Sep-04 3:46 
GeneralRe: wall on this one:simple string search question Pin
Heath Stewart15-Sep-04 7:22
protectorHeath Stewart15-Sep-04 7:22 
Generalsimple string search question Pin
Vodstok15-Sep-04 3:32
Vodstok15-Sep-04 3:32 
GeneralRe: simple string search question Pin
sreejith ss nair15-Sep-04 3:44
sreejith ss nair15-Sep-04 3:44 
GeneralRe: simple string search question Pin
Vodstok15-Sep-04 3:58
Vodstok15-Sep-04 3:58 
GeneralRe: simple string search question Pin
sreejith ss nair15-Sep-04 4:15
sreejith ss nair15-Sep-04 4:15 
GeneralRe: simple string search question Pin
sreejith ss nair15-Sep-04 4:28
sreejith ss nair15-Sep-04 4:28 
Generalwall on this one:simple string search question Pin
Vodstok15-Sep-04 3:27
Vodstok15-Sep-04 3:27 
GeneralPopulate TreeView with ArrayList Pin
93Current15-Sep-04 2:31
93Current15-Sep-04 2:31 
GeneralRe: Populate TreeView with ArrayList Pin
Nnamdi Onyeyiri15-Sep-04 3:22
Nnamdi Onyeyiri15-Sep-04 3:22 
GeneralRe: Populate TreeView with ArrayList Pin
93Current15-Sep-04 8:11
93Current15-Sep-04 8:11 
Generalfinding Movie duration of a wmv file Pin
gupta vaibhav15-Sep-04 0:04
gupta vaibhav15-Sep-04 0:04 
GeneralRe: finding Movie duration of a wmv file Pin
sreejith ss nair15-Sep-04 0:37
sreejith ss nair15-Sep-04 0:37 

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.