Click here to Skip to main content
15,922,166 members
Home / Discussions / C#
   

C#

 
Generalsecurity for c# dll/assembly Pin
ppp00128-Jul-05 4:37
ppp00128-Jul-05 4:37 
GeneralRe: security for c# dll/assembly Pin
Dave Kreskowiak28-Jul-05 4:59
mveDave Kreskowiak28-Jul-05 4:59 
GeneralRe: security for c# dll/assembly Pin
Richard Deeming28-Jul-05 8:59
mveRichard Deeming28-Jul-05 8:59 
GeneralRe: security for c# dll/assembly Pin
Dave Kreskowiak28-Jul-05 10:35
mveDave Kreskowiak28-Jul-05 10:35 
GeneralDecimal Devision Pin
zaboboa28-Jul-05 4:06
zaboboa28-Jul-05 4:06 
GeneralRe: Decimal Devision Pin
Alomgir Miah28-Jul-05 4:17
Alomgir Miah28-Jul-05 4:17 
GeneralRe: Decimal Devision Pin
zaboboa28-Jul-05 4:51
zaboboa28-Jul-05 4:51 
GeneralDDE Pin
Member 197359428-Jul-05 0:38
Member 197359428-Jul-05 0:38 
Hi,

I am trying to use a C# Windows Forms application as a DDE Client.

At present I'm using the follwing code to initiate a session with the DDE Server...

ushort app = GlobalAddAtom(Marshal.StringToHGlobalAnsi(appname));
ushort topic = GlobalAddAtom(Marshal.StringToHGlobalAnsi(topicname));

this.packedParam = PackDDElParam(WM_DDE_INITIATE, (System.IntPtr)app, (System.IntPtr)topic);

SendMessage(dtaProcess, WM_DDE_INITIATE, Process.GetCurrentProcess().MainWindowHandle, this.packedParam);

This should return a WM_DDE_ACK message to the main thread as follows...

protected override void WndProc(ref Message m)
{
\\WM_DDE_ACK = 996
if (m.Msg == 996)
{
MessageBox.Show("");
}
else
{
base.WndProc (ref m);
}
}

I do not receive the WM_DDE_ACK message. Also, the PackDDElParam method (user32.dll) returns a negative value. Is this correct?
GeneralHi,Please provide me documentation Pin
Member 251384828-Jul-05 0:35
Member 251384828-Jul-05 0:35 
GeneralRe: Hi,Please provide me documentation Pin
Dave Kreskowiak28-Jul-05 3:37
mveDave Kreskowiak28-Jul-05 3:37 
GeneralAdd a custom control in a tool bar Pin
Anonymous27-Jul-05 23:21
Anonymous27-Jul-05 23:21 
QuestionAbout ExecuteNonQuery ? Pin
papyrus_lei27-Jul-05 23:13
papyrus_lei27-Jul-05 23:13 
AnswerRe: About ExecuteNonQuery ? Pin
cshaaaa28-Jul-05 0:13
cshaaaa28-Jul-05 0:13 
GeneralRe: About ExecuteNonQuery ? Pin
papyrus_lei28-Jul-05 3:04
papyrus_lei28-Jul-05 3:04 
AnswerRe: About ExecuteNonQuery ? Pin
Anish Gopi28-Jul-05 2:48
sitebuilderAnish Gopi28-Jul-05 2:48 
GeneralRe: About ExecuteNonQuery ? Pin
papyrus_lei28-Jul-05 3:05
papyrus_lei28-Jul-05 3:05 
AnswerRe: About ExecuteNonQuery ? Pin
Anonymous28-Jul-05 2:49
Anonymous28-Jul-05 2:49 
GeneralInheritance Pin
zapap27-Jul-05 21:09
zapap27-Jul-05 21:09 
GeneralRe: Inheritance Pin
Guffa28-Jul-05 0:14
Guffa28-Jul-05 0:14 
GeneralRe: Inheritance Pin
zapap28-Jul-05 8:51
zapap28-Jul-05 8:51 
GeneralOptimizing a C# for size Pin
Luis Alonso Ramos27-Jul-05 20:08
Luis Alonso Ramos27-Jul-05 20:08 
QuestionHow to create a file in remote system Pin
Vinkum27-Jul-05 19:51
Vinkum27-Jul-05 19:51 
QuestionUsing gamepad in C#? Pin
BlackWorm27-Jul-05 18:33
BlackWorm27-Jul-05 18:33 
AnswerRe: Using gamepad in C#? Pin
Christian Graus27-Jul-05 19:07
protectorChristian Graus27-Jul-05 19:07 
GeneralRe: Using gamepad in C#? Pin
BlackWorm27-Jul-05 21:31
BlackWorm27-Jul-05 21:31 

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.