|
Hi,
We have a program that allows users to view different controls in a toolbox and then drag them onto a webpage to create there own pages with controls.
The problem is that im having trouble loading one of my DLLs. I get a BadImageFormatException, but since this error is vague im unsure where to start since this problem has only started recently and there have been no major code changes to the DLL.
Has anyone else had any experience of this error and what was causing it?
Regards,
Gareth.
|
|
|
|
|
This exception is thrown when the image format of the file is corrupt. I would try recompiling/redeploying it to see if this clears it up. Also, if this is a 32 bit image being deployed in a 64 bit process, this exception is thrown.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi Pete,
I've tried both ideas you suggested but none worked :/
I noticed at the end of the exception it said "The module was expected to contain an assembly manifest." any ideas?
Regards,
Gareth.
|
|
|
|
|
Take a look at the IL for this module? Does it contain .assembly ...{} anywhere?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi Pete,
After spending 5 hours trying to figure out this problem, i finally did!. After using ildasm to check out the dll in the build directory and the downloaded dll from the server which is held locally on the users pc, i found out that the local version was corrupt.
It was corrupt because of the way i was FTP'ing over the file to the server, my ftp client was set to asci instead of binary.
Thanks for your help tho!
Regards,
Gareth.
|
|
|
|
|
No bother - glad you got it sorted. But now you know how to tell if the assembly module is specified in IL
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I am using DataGridView to display records. I want to use separate data entry form to enter data instead of DataGridView’s add row. How can I position the data entry form to datagridview’s selected row.
Ideas or existing code would be great
M.Sendilkumar
|
|
|
|
|
I am developing a windows based application which has several data entry forms. All I want to develop as user control. User control will be loaded in to the main form when respective menu clicked by the user. Here I am facing some layout and look-n- feel issues. When the main form resized by the user all other UI controls should also be resized. How I can achieve this? Is there any default scaling mechanism available in .net 2.0.? Help me..!
M.Sendilkumar
|
|
|
|
|
Hi,
I want to start a new application from my C# program.(this part works )
This new window should then get maximized and topmost.
I tried it with WinAPI calls but I was not successful.
Is there a way to do this ?
Thanks in advance,
outerlimit
|
|
|
|
|
The Form has a boolean TopMost property ,
set it to true then will topmost ,
if their two application runs ,and both of them set TopMost to true ,
then ,which one modified last will be effective ,
|
|
|
|
|
You should post your code so we can see what you're trying
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello,
You have to use the MainWindowHandle property of the process in combination with BringWindowtoTop method of user32.dll.
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern int BringWindowToTop(IntPtr hwnd);
public IntPtr HWND_TOPMOST =(IntPtr)(-1);
public IntPtr HWND_NOTOPMOST =(IntPtr)(-2);
System.Diagnostics.ProcessStartInfo psi;
psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized;
psi.FileName = "???.exe";
using(System.Diagnostics.Process process = new System.Diagnostics.Process())
{
process.Start(psi);
process.WaitForInputIdle();
BringWindowToTop(process.Handle);
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
Hello everybody!
I need to write a windows application, that will do following things:
The form has:
Several Buttons, PictureBox, ComboBox.
A button, called "Detect Cameras". By the clicking on it, in the combo box will appear web-cameras, that attached to a PC. User can choose one of the attached web-cams.
When a user made his choice, the PictrueBox will show a stream from selected web-camera.
The second Button, called "Start Recording" will capture this stream to the local file in a new thread.
The third Button, called "Stop Recording" will finish the recording into the local file.
The fourth Button, called "Start BroadCast" will start the broadcast over the internet of the stream in a new thread.
I don't have too much expirience in win. app. programming, even less in directshow so I'll be very glad to recieve any help.
Thanks in advance.
|
|
|
|
|
Do you want us to do your work.
So far what you have tried and what error it shows.
Regards,
Satips.
|
|
|
|
|
No, I don't want you to do my work. I just never worked with directshow...
The steps that detect attached cameras, add them to combobox are done.
The next step is to get the image from selected camera on PictureBox/Panel.
For example, I've cameraDevices - an array of attached cameras, cameraDevices[0] it's selected camera.
How can I get the image from cameraDevices[0] to be shown on PictureBox/Panel?
Thanks.
|
|
|
|
|
The DirectX SDK comes with samples, I'd start there.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Dear All
Regards
How to use OpenGl with C# ,Please explain in detail.
Thanks.
David
david
|
|
|
|
|
Use Tao.
It's a framework written by the Mono project guys which implements the original opengGl functions in .NET. http://www.taoframework.com/[^]
|
|
|
|
|
Hi
I'm working on a project and I'd like to use a framework for NHibernate integration.The question is should I use Castle or Spring.net and why?
If you have worked with these frameworks please let me know your opinion.
Thanks
|
|
|
|
|
Castle Windsor: The Castle Windsor, IoC Container provides great IoC support using a combination of XML configuration and strongly typed declarations. Some of the advantages Castle Windsor brings to the table are less XML and more compile-time error catching, when compared against other options. The Castle Project also has a number of other powerful modules, making it an attractive option if you're looking for more than just IoC. Wide support has been shown for this IoC Container which has generated a lot of buzz around the .NET development community. The "Enterprise" NHibernate Sample includes an example of using Castle Windsor.
Spring .NET: This framework provides IoC declared via XML configuration files. Like the Castle Project, Spring.NET also provides a wide assortment of additional development utilities. This option should be particularly attractive for developers coming from the Java world and are already familiar with the Spring Framework.
Hope the article by Billy McCafferty's NHibernate will help you.
Regards,
Satips.
|
|
|
|
|
|
Welcome.
Regards,
Satips.
|
|
|
|
|
One important note in comparing Spring.Net and Castle is that spring.net DynamicProxy is not Serializable.
|
|
|
|
|
HELLO ALL, HERE I HAVE A PROBLEM IN USING THE INTERFACE MICROSOFT.OFFICE.INTEROP.WORD.TABLEOFCONTENTS, TO ADD A TABLE TO CONTENT IN TO MY WORD DOCUMENTATION USING C# CODE.
CAN ANY ONE HELP ME IN SAME
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|
|
Is there si no one who can give me hints n tricks for the above question.
Its my 5th quetion on forum and i didnt recieve the answere for ant one of my questions.
I didnt expect such type of response from this very big forum full of experts n skilled.
Hello Forum
Always be in touch to help about the topic ASP.NET
|
|
|
|