Re: Application.Run(new Main()) - The specified module could not be found.



I would suggest naming your Form something other than Main.. not a good idea
to name it same as entry point (even if it will work). Just my thought, I
will chk and see if this will work!! and I would post a feedback

VJ

"LQQKIN" <1@xxx> wrote in message
news:05CB9EEF-1ACA-46B2-9A0D-DB86B71DB716@xxxxxxxxxxxxxxxx
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Main());
}
}
}

Main() is the constructor of the Main form that comes up, It has only
InitializeComponent();



Thanks


"VJ" <nonewsaddress@xxxxxxxxx> wrote in message
news:%23tQcZBWbHHA.3272@xxxxxxxxxxxxxxxxxxxxxxx
why is it new Main().. are you calling this from within your Main
function .. Something is not right...!!

VJ

"LQQKIN" <1@xxx> wrote in message
news:10AC316D-63E3-4772-8CD0-14A4F46CA1F7@xxxxxxxxxxxxxxxx
HI,
When i try to run amd debug my project i get following error.
- The specified module could not be found. -
This error is getting thrown on Application.Run(new Main())

From what it looks like it can not find some DLL that i have referenced.

If i create a new project with out those dll's everything works fine,
but as
soon as i add them and start using them i get the same error.

Any help is greatly appreciated

Thanks







.



Relevant Pages

  • Re: stl vector find.
    ... > Once I can understand this part another problem I see is in the naming ... in essence I need to dynamically name my structures but for now the ... (of type Entry) ...
    (alt.comp.lang.learn.c-cpp)
  • ldap: naming attribute dc is not present in entry
    ... when i try to insert the root structure i always get the following error: ... naming attribute 'dc' is not present in entry ... add objectclass: ... naming attribute 'dc' is not present in entry ...
    (comp.mail.misc)
  • Re: settings access permissions below /dev accross reboots
    ... Garry Harthill spoke: ... > Try naming the file 10-local.rules ... Could it be that the 'tun' module should be loaded first? ... entry in /etc/modprobe.conf? ...
    (Fedora)
  • Re: Firefox and Sound
    ... number of loads that app performed. ... only references to entry points in the dll. ... specified entry points in it can't be found, ... but the download manager said it was only 78.8 MB. ...
    (comp.os.os2.apps)
  • Re: C coding guidelines
    ... /your/ code's entry point, then it isn't what we're talking about - ... but I'm talking specifically about Win32 GUI. ... The REAL entry point for a Win32 GUI program is WinMainCRTStartup. ... link with to produce the DLL. ...
    (comp.lang.c)

Quantcast