codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  how to raiseevent in dll file from mail file  pcsteam_india at 11:25 on Tuesday, July 19, 2005
 

Good Day Dear 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;

  Re: how to raiseevent in dll file from mail file  geTTysburg at 23:21 on Friday, October 14, 2005
 

In order to do this, you would need to create a multi-threaded DLL. A seperate thread would be created in order to work on each "solution". Also, The EXE would have to pass information to the DLL which would enable the DLL to signal tothe EXE when a "solution" is ready. This could be done by passing The EXE's main window handle(HWND). Each thread would simply send a message back to EXE via SendMessage() or PostMessage(). You would need to define a unique windows message that both the DLL and EXE would know about.

#define WM_SOLUTION_READY WM_USER+<nn>

You'd need to check your existing header files to see if any custom message values have already been defined.

Are you familiar with Windows messages?

  Christian Louboutin  huaxiangseo at 08:05 on Tuesday, November 22, 2011
 

MANCHESTER, N.H. (AP) — [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin[/url] Republican presidential contender Newt Gingrich on Monday proposed allowing younger workers still decades away from retirement to bypass Social Security [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutins[/url] and instead choose private investment accounts that would be subject to [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Sale[/url] stock market gyrations.The former House speaker, who has risen in the polls, would allow younger workers to take [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Shoes[/url] their share of the payroll tax that funds Social Security and put it in a private account.Employers would still [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Cheap[/url] pay their share of the tax, which would be used to pay benefits for current retirees. But it would create [url=http://www.christianlouboutinredbottoms.com/]Cheap Christian Louboutin[/url] a funding shortfall that Gingrich brushed off."That gap is more than covered by the savings" that would come [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Outlet[/url] from giving states control of 185 social welfare programs, Gingrich told reporters after a speech that [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Outlet Store[/url] laid out broad concepts but lacked key details.Gingrich's plan would cover the near-term deficits by giving to [url=http://www.christianlouboutinredbottoms.com/]Discount Christian Louboutin[/url] states responsibility for such programs as AmeriCorps volunteers, Section 8 public housing [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Discount[/url] and Pell Grants for college students.
[url=http://www.christianlouboutinredbottoms.com/]Discount Christian Louboutin Shoes[/url]
[url=http://www.christianlouboutinredbottoms.com/]Cheap Christian Louboutin Shoes[/url]
[url=http://www.christianlouboutinredbottoms.com/new-christian-louboutin-c-20.html]Red Bottoms[/url]
[url=http://www.christianlouboutinredbottoms.com/new-christian-louboutin-c-20.html]Red Bottoms Shoes[/url]
[url=http://www.christianlouboutinredbottoms.com/new-christian-louboutin-c-20.html]Red Bottom[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-boots-c-5.html]Christian Louboutin Boots[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-collection-c-18.html]Christian Louboutin Replica[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-collection-c-18.html]Replica Christian Louboutin[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-collection-c-18.html]Replica Louboutin[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-collection-c-18.html]Replica Louboutins[/url]
He said states were better suited to administer those programs.Gingrich [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Online[/url] said his retirement proposal, an idea floated by Republicans before him, would empower voters."Wouldn't you rather control your account?" Gingrich asked an audience of students at St. Anselm College.His advisers couldn't say how much the plan would cost, when it would begin or who would be [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Shop[/url] eligible. They did say, however, that current retirees would continue to receive benefits at promised levels.[url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin Store[/url] Peter Ferrara, Gingrich's senior economic policy adviser, said federal spending as a whole would be reduced [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin For Cheap[/url] by half within the next three decades."It's a lot of reduction," he said.At a business leaders' [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin On Sale[/url] breakfast earlier in the day in Nashua, Gingrich predicted that the program "would save literally [url=http://www.christianlouboutinredbottoms.com/]Christian Louboutin UK[/url] trillions over the next generation."Under the plan, workers would be able to do one of two things: continue sending [url=http://www.christianlouboutinredbottoms.com/]Louboutin[/url] their share of Social Security taxes to the popular, safety-net program or give it to private firms that would compete for [url=http://www.christianlouboutinredbottoms.com/]Louboutin Sale[/url] those dollars — as much as $20,000 a year, Gingrich estimated."No one is ever forced into the (private account) system," he said after the speech.
Markets would determine how much money workers who chose private [url=http://www.christianlouboutinredbottoms.com/]Louboutin Outlet[/url] accounts would get each month. Gingrich guaranteed a minimum income in case Wall Street collapses like it did in 2008.[url=http://www.christianlouboutinredbottoms.com/]Louboutin Shoes[/url] As Gingrich spoke Monday, stocks plunged several hundred points by midday as a special congressional panel in [url=http://www.christianlouboutinredbottoms.com/]Cheap Louboutin[/url] Washington appeared ready to declare failure in its attempt to agree on how to trim federal spending by $1.2 trillion over a decade.
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-collection-c-18.html]Christian Louboutin Knockoffs[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-pumps-c-6.html]Christian Louboutin Pumps[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-wedges-c-2.html]Christian Louboutin Wedges[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-sandals-c-1.html]Christian Louboutin Sandals[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-slingback-c-9.html]Christian Louboutin Slingback[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-bridal-c-10.html]Christian Louboutin Bridal[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-peep-toe-c-7.html]Christian Louboutin Peep Toe[/url]
[url=http://www.christianlouboutinredbottoms.com/christian-louboutin-sneakers-c-11.html]Christian Louboutin Sneakers[/url]
[url=http://www.christianlouboutinredbottoms.com/]http://www.christianlouboutinredbottoms.com/[/url]








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Sharing object in perl
•  Christian Louboutin
•  Christian Louboutin
•  Christian Louboutin
•  Christian Louboutin
•  Christian Louboutin
•  Christian Louboutin
•  Re: how to create forum using asp.net with c# language?
•  Re: C++ Beginner question


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2011