Click here to Skip to main content
15,923,852 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Autorun checks in registry Pin
Saksida Bojan29-Aug-05 1:10
Saksida Bojan29-Aug-05 1:10 
Questionvariables initialization in the constructor Pin
chen_k27-Aug-05 18:56
chen_k27-Aug-05 18:56 
AnswerRe: variables initialization in the constructor Pin
Christian Graus28-Aug-05 17:14
protectorChristian Graus28-Aug-05 17:14 
AnswerRe: variables initialization in the constructor Pin
hamster129-Aug-05 15:26
hamster129-Aug-05 15:26 
AnswerRe: variables initialization in the constructor Pin
Nemanja Trifunovic30-Aug-05 2:32
Nemanja Trifunovic30-Aug-05 2:32 
Questionpossible memory leak Pin
Saksida Bojan25-Aug-05 20:51
Saksida Bojan25-Aug-05 20:51 
AnswerRe: possible memory leak Pin
Nemanja Trifunovic26-Aug-05 2:26
Nemanja Trifunovic26-Aug-05 2:26 
QuestionCan not marshal parameter #4: The type definition of this type has no layout information. Pin
AnsGe25-Aug-05 19:04
AnsGe25-Aug-05 19:04 
Hai

In my applcation i want to list all machines in the network.

So i used the WNetOpenEnum API .

My code looks like,

[DllImport("Mpr.dll", EntryPoint="WNetOpenEnumA", CallingConvention=CallingConvention::Winapi)]
static ErrorCodes WNetOpenEnum(ResourceScope dwScope, ResourceType dwType, ResourceUsage dwUsage, NETRESOURCE* p, IntPtr &lphEnum);

NETRESOURCE* pRsrc = new NETRESOURCE(); //A managed class

IntPtr handle = IntPtr::Zero;

result = WNetOpenEnum(RESOURCE_GLOBALNET, RESOURCETYPE_DISK, RESOURCEUSAGE_ALL, pRsrc, handle);


But when i run the application got an error

" Can not marshal parameter #4: The type definition of this type has no layout information. "

Whats is the problem.

Plz help

AnswerRe: Can not marshal parameter #4: The type definition of this type has no layout information. Pin
HumanOsc30-Aug-05 7:21
HumanOsc30-Aug-05 7:21 
QuestionMultithreading Pin
Saksida Bojan25-Aug-05 10:41
Saksida Bojan25-Aug-05 10:41 
QuestionDownload accelarator Pin
Y_R25-Aug-05 6:23
Y_R25-Aug-05 6:23 
QuestionDriver interface Pin
Paresh emb25-Aug-05 5:52
Paresh emb25-Aug-05 5:52 
QuestionManifest Pin
Alex_Y25-Aug-05 2:36
Alex_Y25-Aug-05 2:36 
QuestionCall dll problem Pin
Kash25-Aug-05 0:22
Kash25-Aug-05 0:22 
AnswerRe: Call dll problem Pin
ursus zeta25-Aug-05 5:34
ursus zeta25-Aug-05 5:34 
QuestionCan't close main form!! Pin
richiemac24-Aug-05 23:58
richiemac24-Aug-05 23:58 
AnswerRe: Can't close main form!! Pin
Saksida Bojan25-Aug-05 20:50
Saksida Bojan25-Aug-05 20:50 
GeneralRe: Can't close main form!! Pin
richiemac25-Aug-05 21:55
richiemac25-Aug-05 21:55 
GeneralRe: Can't close main form!! Pin
Saksida Bojan28-Aug-05 10:46
Saksida Bojan28-Aug-05 10:46 
GeneralVisual Studio 2005 Pin
Anonymous24-Aug-05 20:33
Anonymous24-Aug-05 20:33 
GeneralRe: Visual Studio 2005 Pin
toxcct24-Aug-05 23:11
toxcct24-Aug-05 23:11 
GeneralRe: Visual Studio 2005 Pin
Anonymous25-Aug-05 1:25
Anonymous25-Aug-05 1:25 
GeneralRe: Visual Studio 2005 Pin
toxcct30-Aug-05 4:07
toxcct30-Aug-05 4:07 
GeneralCobList deleting last element asserts!!! HELP ME Pin
dharani22-Aug-05 0:16
dharani22-Aug-05 0:16 
GeneralRe: CobList deleting last element asserts!!! HELP ME Pin
Christian Graus22-Aug-05 10:49
protectorChristian Graus22-Aug-05 10:49 

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.