Click here to Skip to main content
15,896,453 members
Home / Discussions / C#
   

C#

 
AnswerRe: New Day Event Pin
benjymous10-Feb-06 2:37
benjymous10-Feb-06 2:37 
GeneralRe: New Day Event Pin
alex@alexhitchins.com10-Feb-06 2:44
alex@alexhitchins.com10-Feb-06 2:44 
AnswerRe: New Day Event Pin
mav.northwind10-Feb-06 8:31
mav.northwind10-Feb-06 8:31 
Questionshutdown external win32 application Pin
Ibana10-Feb-06 1:36
Ibana10-Feb-06 1:36 
QuestionReal Time Notification in C#, Sql Server Pin
Adarsh Shah10-Feb-06 0:56
Adarsh Shah10-Feb-06 0:56 
AnswerRe: Real Time Notification in C#, Sql Server Pin
Guffa10-Feb-06 2:15
Guffa10-Feb-06 2:15 
GeneralRe: Real Time Notification in C#, Sql Server Pin
Adarsh Shah16-Feb-06 18:43
Adarsh Shah16-Feb-06 18:43 
Question[Message Deleted] Pin
Adarsh Shah10-Feb-06 0:54
Adarsh Shah10-Feb-06 0:54 
AnswerRe: Notification in C#, SQL Server Pin
J4amieC10-Feb-06 0:58
J4amieC10-Feb-06 0:58 
GeneralRe: Notification in C#, SQL Server Pin
Adarsh Shah10-Feb-06 1:01
Adarsh Shah10-Feb-06 1:01 
QuestionC# code-behind file doesn't work with Infopath Pin
Alex Getman10-Feb-06 0:47
Alex Getman10-Feb-06 0:47 
AnswerRe: C# code-behind file doesn't work with Infopath Pin
Alex Getman10-Feb-06 2:16
Alex Getman10-Feb-06 2:16 
Questionhow to Update Database in VS.2005 ? Pin
hdv2129-Feb-06 23:42
hdv2129-Feb-06 23:42 
AnswerRe: how to Update Database in VS.2005 ? Pin
Tom Wright10-Feb-06 12:03
Tom Wright10-Feb-06 12:03 
QuestionASP C# Web Control Pin
winzone9-Feb-06 22:59
winzone9-Feb-06 22:59 
QuestionWhen my C# interop with MC++, the local variable out of scope. Pin
tiancaidao9-Feb-06 22:41
tiancaidao9-Feb-06 22:41 
the variables in MC++ "out of scope" when my C# code subclass the MC++ abstract class.
------------
C++ abstract class:
public __gc __abstract class PWiDSForm
{
public:
virtual void NotifyViewHandler(String* funcName, int node, UInt32 LC) = 0;
};
---------------
C# subclass:
public class FormDelegate : WiDSAddinView.PWiDSForm
{
WiDSForm wf;
public FormDelegate(WiDSForm wf)
{
this.wf = wf;
}

public override void NotifyViewHandler(string funcName, int node, uint LC)
{
wf.WiDSEventStackLV_GotoFunction2(funcName,node,LC);
}
}
_____________________
//#program managed

DWORD WINAPI ViewProc(LPVOID lpParameter){

FILE *fp; //just define here
char **temp;
char name[512];

Py_Initialize();
temp = (char **)malloc(sizeof(char *));
*temp = (char *)malloc(20);
strcpy(*temp,"hello");
PySys_SetArgv(1, temp);
if(!Py_IsInitialized())
{
printf("can't init python");
return 0;
}
Py_InitModule("WiDSAddin",WiDSAddinMethods);

sprintf(name,"%s%s", Path,"WiDSAddinView.py");


fp = fopen(name, "r");//----------"out of scope at runtime"


PyRun_SimpleFile(fp, name);
Py_Finalize();
View::WiDSViewHandle = NULL;
return NULL;
}

but if I remove the class inherit, the programs works fine.

What is the problem?

Thanks in advance.
AnswerRe: When my C# interop with MC++, the local variable out of scope. Pin
tiancaidao10-Feb-06 2:35
tiancaidao10-Feb-06 2:35 
QuestionCristian clock synchronization Algorithm on distributed OS Pin
BestArtemis9-Feb-06 22:07
BestArtemis9-Feb-06 22:07 
AnswerRe: Cristian click synchronization Algorithm on distributed OS Pin
leppie9-Feb-06 23:40
leppie9-Feb-06 23:40 
AnswerRe: Cristian clock synchronization Algorithm on distributed OS Pin
Dave Kreskowiak10-Feb-06 5:16
mveDave Kreskowiak10-Feb-06 5:16 
Questionhow to encrypt/decrypt exe file on the fly ? Pin
hdv2129-Feb-06 22:04
hdv2129-Feb-06 22:04 
AnswerRe: how to encrypt/decrypt exe file on the fly ? Pin
leppie9-Feb-06 23:45
leppie9-Feb-06 23:45 
GeneralRe: how to encrypt/decrypt exe file on the fly ? Pin
Ingo10-Feb-06 3:15
Ingo10-Feb-06 3:15 
AnswerRe: how to encrypt/decrypt exe file on the fly ? Pin
Dave Kreskowiak10-Feb-06 5:14
mveDave Kreskowiak10-Feb-06 5:14 
QuestionDOS program output problem!! Pin
TheNewNewGuy9-Feb-06 21:59
TheNewNewGuy9-Feb-06 21:59 

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.