Click here to Skip to main content
15,915,065 members
Home / Discussions / C#
   

C#

 
GeneralRe: Maximized form without border, not in fullscreen mode Pin
loutremaline12-Apr-06 22:56
loutremaline12-Apr-06 22:56 
GeneralRe: Maximized form without border, not in fullscreen mode Pin
alexey N13-Apr-06 0:15
alexey N13-Apr-06 0:15 
Questionopening and compiling VS 2005 projects with VS 2003 ? Pin
hasantayyar11-Apr-06 21:02
hasantayyar11-Apr-06 21:02 
AnswerRe: opening and compiling VS 2005 projects with VS 2003 ? Pin
hasantayyar11-Apr-06 21:08
hasantayyar11-Apr-06 21:08 
GeneralRe: opening and compiling VS 2005 projects with VS 2003 ? Pin
CWIZO11-Apr-06 22:29
CWIZO11-Apr-06 22:29 
GeneralRe: opening and compiling VS 2005 projects with VS 2003 ? Pin
hasantayyar11-Apr-06 22:46
hasantayyar11-Apr-06 22:46 
GeneralRe: opening and compiling VS 2005 projects with VS 2003 ? Pin
CWIZO11-Apr-06 23:01
CWIZO11-Apr-06 23:01 
QuestionDllImport call unmanaged code Pin
Killer311-Apr-06 20:42
Killer311-Apr-06 20:42 
INPUT :
VC++ dll (abcd.dll) has funtion named DecryptString.

Requirement :
i need to create a dotnet project which uses this function in unmanaged dll.

Steps taken

public class CryptoAPI
{
[DllImport("abcd.dll", EntryPoint="#392")]
public static extern string DecryptString(string key,string text);
}

When i access the function in DOTNET
string EncryptedText = CryptoAPI.DecryptString(Key,PlainText);


It works fine couple of times.Some times it throws up an error
"object reference not set to instance of an object".


Can u please help me on this?
Can u tell me if i call the method - 5 times is it loaded 5 times during the runtime?
or only once when i do it for the first time.











for thendral
AnswerRe: DllImport call unmanaged code Pin
alexey N11-Apr-06 20:51
alexey N11-Apr-06 20:51 
GeneralRe: DllImport call unmanaged code Pin
Killer311-Apr-06 21:10
Killer311-Apr-06 21:10 
GeneralRe: DllImport call unmanaged code Pin
alexey N11-Apr-06 22:31
alexey N11-Apr-06 22:31 
AnswerRe: DllImport call unmanaged code Pin
shezh12-Apr-06 0:53
shezh12-Apr-06 0:53 
Questionproblem Pin
pankajgarg1211-Apr-06 20:36
pankajgarg1211-Apr-06 20:36 
AnswerRe: problem Pin
hasantayyar11-Apr-06 20:59
hasantayyar11-Apr-06 20:59 
GeneralRe: problem Pin
Colin Angus Mackay11-Apr-06 23:18
Colin Angus Mackay11-Apr-06 23:18 
AnswerRe: Please write better subjects Pin
Guffa11-Apr-06 21:32
Guffa11-Apr-06 21:32 
AnswerRe: problem Pin
Colin Angus Mackay11-Apr-06 23:20
Colin Angus Mackay11-Apr-06 23:20 
Questionproblem Pin
pankajgarg1211-Apr-06 20:33
pankajgarg1211-Apr-06 20:33 
AnswerRe: Please write better subjects Pin
Guffa11-Apr-06 21:18
Guffa11-Apr-06 21:18 
Questionproblem Pin
pankajgarg1211-Apr-06 20:32
pankajgarg1211-Apr-06 20:32 
AnswerRe: problem Pin
alexey N11-Apr-06 20:36
alexey N11-Apr-06 20:36 
GeneralRe: problem Pin
Guffa11-Apr-06 23:03
Guffa11-Apr-06 23:03 
Questionidea of a very special 'Menuitem' Pin
nuessler11-Apr-06 20:16
nuessler11-Apr-06 20:16 
AnswerRe: idea of a very special 'Menuitem' Pin
alexey N11-Apr-06 20:26
alexey N11-Apr-06 20:26 
GeneralRe: idea of a very special 'Menuitem' Pin
nuessler11-Apr-06 21:34
nuessler11-Apr-06 21:34 

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.