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

C#

 
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 
AnswerRe: DOS program output problem!! Pin
leppie9-Feb-06 23:48
leppie9-Feb-06 23:48 
AnswerRe: DOS program output problem!! Pin
Dave Kreskowiak10-Feb-06 5:01
mveDave Kreskowiak10-Feb-06 5:01 
GeneralRe: DOS program output problem!! Pin
TheNewNewGuy11-Feb-06 1:32
TheNewNewGuy11-Feb-06 1:32 
GeneralRe: DOS program output problem!! Pin
Dave Kreskowiak11-Feb-06 3:32
mveDave Kreskowiak11-Feb-06 3:32 
GeneralRe: DOS program output problem!! Pin
TheNewNewGuy12-Feb-06 0:03
TheNewNewGuy12-Feb-06 0:03 
GeneralRe: DOS program output problem!! Pin
Dave Kreskowiak12-Feb-06 2:17
mveDave Kreskowiak12-Feb-06 2:17 
QuestionCustom Object used with Profile Object Pin
kloepper9-Feb-06 19:55
kloepper9-Feb-06 19:55 
QuestionHow to disable the jump to node function in TreeVeiw? Pin
coby cai9-Feb-06 18:13
professionalcoby cai9-Feb-06 18:13 

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.