Click here to Skip to main content
15,899,754 members
Home / Discussions / C#
   

C#

 
AnswerRe: Complete this program-- New bie to FileStream ? Pin
maheswara19-Jul-05 2:14
maheswara19-Jul-05 2:14 
GeneralRe: Complete this program-- New bie to FileStream ? Pin
Anonymous20-Jul-05 21:01
Anonymous20-Jul-05 21:01 
GeneralI have duplicate items in combobox and I don't wont that Pin
mcatanoiu19-Jul-05 1:14
mcatanoiu19-Jul-05 1:14 
GeneralDynamic population of treenode Pin
Member 211897919-Jul-05 1:00
Member 211897919-Jul-05 1:00 
GeneralPropertyGrid & UITypeEditor - PLS HELP Pin
deepakpesit18-Jul-05 23:05
deepakpesit18-Jul-05 23:05 
GeneralRe: PropertyGrid & UITypeEditor - PLS HELP Pin
leppie18-Jul-05 23:54
leppie18-Jul-05 23:54 
GeneralRe: PropertyGrid & UITypeEditor - PLS HELP Pin
deepakpesit19-Jul-05 2:22
deepakpesit19-Jul-05 2:22 
QuestionHandshaking with an event inside a DLL? Pin
pcssathik18-Jul-05 22:54
pcssathik18-Jul-05 22:54 
Good Day People,

I have a DLL. It takes in some parameters, and returns some output. This DLL has to be called form a EXE, which has a GUI Interface.

The portion of code where the DLL returns the solutin is pasted below.

The doubt is; when I call the DLL it returns "n" solutions. I need to take the first solution and show output, while the DLL should be proessing the other solutions.

So I think I should be raising an event, that outputs the first solution. I dot know how to handshake between my EXE and DLL properly. Can you assist?
------------------------------------------------
Code:
------------------------------------------------


forward = true;
while (!myStack.IsEmpty())
{
if (forward)
{
CurrentPtr = -1;
}
else
{
CurrentPtr = (int) myStack.Pop();
CurrentSolution.RemoveAt(myStack.Count);
myArray.RemoveAt(CurrentSolution);
}
CurrentWord = this.Problem.NthWord(myStack.Count);
strExistingWord = myArray.GetStringAt(CurrentWord);
myDict = (Dict) Dicts[myStack.Count];
newPtr = myDict.GetWord(strExistingWord,CurrentPtr, ref strNewWord);

if (newPtr != -1 )
{
CurrentWord.Word= strNewWord;
CurrentSolution.AddWord(CurrentWord);
myStack.Push(newPtr);
myArray.StoreAt(CurrentWord);
forward = true;

if(myStack.Count == this.ProblemSize)
{
Solution newSolution = CurrentSolution.Clone();
this.alSolutions.Add(newSolution);
//return;

// newSolution.writeSolution();
// System.Console.ReadLine();

forward = false;
}
}
else
{
forward = false;

// show the combinations
//this.show(myStack.ToArray());
//System.Console.Write("{0} ", ShowInPC(myStack.ToArray(),Dicts));
}
}
return;




Md. Sathik
GeneralC# handshaking with a Event inside a DLL Pin
Anonymous18-Jul-05 22:47
Anonymous18-Jul-05 22:47 
GeneralUrgent help about calculator Pin
TA-RS18-Jul-05 22:42
TA-RS18-Jul-05 22:42 
GeneralRe: Urgent help about calculator Pin
tatchung18-Jul-05 22:50
tatchung18-Jul-05 22:50 
GeneralFinal Leg!! Pin
tatchung18-Jul-05 22:40
tatchung18-Jul-05 22:40 
GeneralRe: Final Leg!! Pin
Gavin Jeffrey18-Jul-05 22:54
Gavin Jeffrey18-Jul-05 22:54 
GeneralPredefined Macros Pin
Paul Selormey18-Jul-05 19:36
Paul Selormey18-Jul-05 19:36 
GeneralRe: Predefined Macros Pin
Christian Graus18-Jul-05 19:50
protectorChristian Graus18-Jul-05 19:50 
GeneralRe: Predefined Macros Pin
Paul Selormey18-Jul-05 21:36
Paul Selormey18-Jul-05 21:36 
GeneralRe: Predefined Macros Pin
leppie19-Jul-05 0:05
leppie19-Jul-05 0:05 
GeneralRe: Predefined Macros Pin
Paul Selormey19-Jul-05 4:14
Paul Selormey19-Jul-05 4:14 
GeneralRe: Predefined Macros Pin
Christian Graus19-Jul-05 10:32
protectorChristian Graus19-Jul-05 10:32 
GeneralOptional Parameter in C# Pin
arechno18-Jul-05 18:55
arechno18-Jul-05 18:55 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:02
protectorChristian Graus18-Jul-05 19:02 
GeneralRe: Optional Parameter in C# Pin
arechno18-Jul-05 19:27
arechno18-Jul-05 19:27 
GeneralRe: Optional Parameter in C# Pin
Christian Graus18-Jul-05 19:29
protectorChristian Graus18-Jul-05 19:29 
GeneralRe: Optional Parameter in C# Pin
DavidNohejl19-Jul-05 3:08
DavidNohejl19-Jul-05 3:08 
GeneralRe: Optional Parameter in C# Pin
Dave Doknjas19-Jul-05 16:45
Dave Doknjas19-Jul-05 16:45 

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.