Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
AnswerRe: simple user control / panel question Pin
dbetting8-Oct-05 4:07
dbetting8-Oct-05 4:07 
QuestionExporting data from CVS and entering into MSSQL table Pin
hasanali006-Oct-05 6:01
hasanali006-Oct-05 6:01 
AnswerRe: Exporting data from CVS and entering into MSSQL table Pin
Guffa6-Oct-05 7:43
Guffa6-Oct-05 7:43 
GeneralRe: Exporting data from CVS and entering into MSSQL table Pin
hasanali006-Oct-05 23:23
hasanali006-Oct-05 23:23 
QuestionReflection onto Assemblies with dependencies Pin
MrEyes6-Oct-05 5:56
MrEyes6-Oct-05 5:56 
AnswerRe: Reflection onto Assemblies with dependencies Pin
Tom Larsen6-Oct-05 8:47
Tom Larsen6-Oct-05 8:47 
Questiondataset Pin
amin saffari6-Oct-05 5:12
amin saffari6-Oct-05 5:12 
QuestionP/Invoke Pin
Member 18186146-Oct-05 3:54
Member 18186146-Oct-05 3:54 
Hello,
could anybody help me, please?

How do I do the P/Invoke of the following function (from TTNCom.lib of TomTom SDK)?

static INT GetSdkVersionInfoV01(TNavVersionInfoV01& aVersionInfo);<br />
<br />
struct TNavVersionInfoV01<br />
{<br />
  char iVersion[16];<br />
  INT  iBuildNumber;<br />
};


I've tried:

[DllImport("TTNCom.dll", EntryPoint = "?GetNavigatorVersionInfoV01@CTomTomNavigatorCom@@SGHAAUTNavVersionInfoV01@1@@Z")]<br />
extern static int GetNavigatorVersionInfoV01(ref TNavVersionInfoV01 aVersionInfo);<br />
<br />
public struct TNavVersionInfoV01 <br />
{<br />
  char[] iVersion;<br />
  int iBuildNumber;<br />
}


but when calling it like:

TNavVersionInfoV01 nv = new TNavVersionInfoV01();<br />
<br />
int ShowTT = GetNavigatorVersionInfoV01(ref nv);


I get System.NotSupportedException.

There must be some problem with marshalling of types ...Confused | :confused:



Thanks anyway,

Honic
AnswerRe: P/Invoke Pin
mav.northwind6-Oct-05 20:28
mav.northwind6-Oct-05 20:28 
GeneralRe: P/Invoke Pin
Member 18186146-Oct-05 21:50
Member 18186146-Oct-05 21:50 
QuestionHow do I invoke or call the insert table dialog Pin
Agyeman6-Oct-05 3:48
Agyeman6-Oct-05 3:48 
QuestionParser replacement target to Dot Net platform Pin
Member 23353326-Oct-05 3:44
Member 23353326-Oct-05 3:44 
AnswerRe: Parser replacement target to Dot Net platform Pin
David Stone6-Oct-05 12:12
sitebuilderDavid Stone6-Oct-05 12:12 
QuestionSendMessage return value Pin
status()6-Oct-05 3:24
status()6-Oct-05 3:24 
AnswerRe: SendMessage return value Pin
status()6-Oct-05 3:50
status()6-Oct-05 3:50 
AnswerRe: SendMessage return value Pin
status()6-Oct-05 4:19
status()6-Oct-05 4:19 
GeneralRe: SendMessage return value Pin
mav.northwind6-Oct-05 20:42
mav.northwind6-Oct-05 20:42 
QuestionListening to keypresses?? Pin
.M6-Oct-05 0:29
.M6-Oct-05 0:29 
QuestionHow can we add values in ArratList in different way?? Pin
parvinder sehrawat6-Oct-05 0:04
parvinder sehrawat6-Oct-05 0:04 
AnswerRe: How can we add values in ArratList in different way?? Pin
Stefan Troschuetz6-Oct-05 0:14
Stefan Troschuetz6-Oct-05 0:14 
Questionconverting aspx pages to HMTL pages Pin
A.Grover5-Oct-05 23:52
A.Grover5-Oct-05 23:52 
AnswerRe: converting aspx pages to HMTL pages Pin
Guffa6-Oct-05 0:06
Guffa6-Oct-05 0:06 
QuestionExecuting programs Pin
Stefan_ Spenz5-Oct-05 23:38
Stefan_ Spenz5-Oct-05 23:38 
AnswerRe: Executing programs Pin
Stefan Troschuetz5-Oct-05 23:48
Stefan Troschuetz5-Oct-05 23:48 
GeneralRe: Executing programs Pin
Stefan_ Spenz6-Oct-05 1:51
Stefan_ Spenz6-Oct-05 1: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.