Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
Questionsave gridview values in database Pin
grkrishna28-Apr-09 19:10
grkrishna28-Apr-09 19:10 
AnswerRe: save gridview values in database PinPopular
grkrishna28-Apr-09 22:26
grkrishna28-Apr-09 22:26 
AnswerRe: save gridview values in database [modified] Pin
sorifazlu14-Sep-11 23:26
sorifazlu14-Sep-11 23:26 
Questionfind .lib, .dll in exe Pin
RKP72828-Apr-09 19:05
RKP72828-Apr-09 19:05 
AnswerRe: find .lib, .dll in exe Pin
RKP72828-Apr-09 19:06
RKP72828-Apr-09 19:06 
QuestionHow can I get the time taken for PDF getting downloaded when it is opened on Internet Explorer? Pin
svt gdwl28-Apr-09 18:19
svt gdwl28-Apr-09 18:19 
AnswerRe: How can I get the time taken for PDF getting downloaded when it is opened on Internet Explorer? Pin
_Maxxx_28-Apr-09 19:45
professional_Maxxx_28-Apr-09 19:45 
QuestionUnable to load DLL - Why ?? Pin
matty2desmara28-Apr-09 15:53
matty2desmara28-Apr-09 15:53 
Hi,

I created a simple C# program that imports a dll (Unmanaged dll), which a coworker wrote, the dll references other managed dll's (kernel32.dll,...etc) . On the PC i built the app on everything works great ( /bin/Debug/test.exe Folder), as well the unmanaged dll resides in the same folder as the .exe.


I published the app and ran it on another PC and i receive an error " Unable to load DLL "DSVR.dll" ..." Details

************** Exception Text **************
System.DllNotFoundException: Unable to load DLL 'DSVR.dll': This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
at DSVR_CSharpExample.DSVR.DSVR_Open()
at DSVR_CSharpExample.Form1.Form1_Load(Object sender, EventArgs e) in C:\Program Files\H&E\DSVR_CSharpExample\Form1.cs:line 127
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



I installed the same version of .net, Redistribution 2008 SP1, Powerpacks, etc.. i ran dependency walker and everything traced out fine.


Any Suggestion on What am i doing wrong (I've been trying to figure this out for 2 days) ?

Namespace DSVR_CSharpExample
{

    /// <summary>
    /// Static class containing all of the exported methods from the DSVR library
    /// </summary>
    public static class DSVR
    {
        [DllImport("DSVR.dll", EntryPoint = "DSVR_Open")]
        public static extern IntPtr DSVR_Open();

        [DllImport("DSVR.dll", EntryPoint = "DSVR_Close")]
        public static extern void DSVR_Close(IntPtr ConnectionHandle);

.
.
.
.


Much appreciated,

Matt
AnswerRe: Unable to load DLL - Why ?? Pin
Luc Pattyn28-Apr-09 16:31
sitebuilderLuc Pattyn28-Apr-09 16:31 
GeneralRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:08
matty2desmara29-Apr-09 4:08 
AnswerRe: Unable to load DLL - Why ?? Pin
jas0n2328-Apr-09 23:27
jas0n2328-Apr-09 23:27 
GeneralRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:20
matty2desmara29-Apr-09 4:20 
AnswerRe: Unable to load DLL - Why ?? Pin
matty2desmara29-Apr-09 4:54
matty2desmara29-Apr-09 4:54 
AnswerRe: Unable to load DLL - Why ?? Pin
S. Senthil Kumar30-Apr-09 9:53
S. Senthil Kumar30-Apr-09 9:53 
QuestionDrag drop from picturebox to desktop? Pin
Jacob Dixon28-Apr-09 13:32
Jacob Dixon28-Apr-09 13:32 
GeneralRate this tricky code : Use multiple TableAdapters within a single transaction! Pin
hdv21228-Apr-09 9:29
hdv21228-Apr-09 9:29 
GeneralRe: Rate this tricky code : Use multiple TableAdapters within a single transaction! Pin
Henry Minute28-Apr-09 10:49
Henry Minute28-Apr-09 10:49 
GeneralRe: Rate this tricky code : Use multiple TableAdapters within a single transaction! Pin
hdv21228-Apr-09 11:51
hdv21228-Apr-09 11:51 
QuestionReading a Konica Minolta printer to get print & copy counts Pin
crazylad28-Apr-09 9:19
crazylad28-Apr-09 9:19 
AnswerRe: Reading a Konica Minolta printer to get print & copy counts Pin
Henry Minute28-Apr-09 10:51
Henry Minute28-Apr-09 10:51 
GeneralRe: Reading a Konica Minolta printer to get print & copy counts Pin
crazylad6-May-09 5:08
crazylad6-May-09 5:08 
NewsGetting the server name and SQL instance name [modified] Pin
swetha sankaran28-Apr-09 9:10
swetha sankaran28-Apr-09 9:10 
QuestionRe: Getting the server name and SQL instance name Pin
Jimmanuel28-Apr-09 10:37
Jimmanuel28-Apr-09 10:37 
GeneralRe: Getting the server name and SQL instance name Pin
Rolando CC28-Apr-09 11:00
professionalRolando CC28-Apr-09 11:00 
QuestionFormatting Pin
bwood202028-Apr-09 8:54
bwood202028-Apr-09 8:54 

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.