Ok so I tried to do the same thing in VB.NET. I usally work in a console application for ease and once I have succeded I will convert or redo what every I have to do.
The console application in VB.NET is by default in a module.
If I do the following in VB.NET from the module
Dim dllRef As New sumdll.sumdll() //Only this one method is available… It is indicated as an interface
Dim a As Integer = 10
Dim b As Integer = 18
Dim c As Integer = 0
Dim d As Double = 0.0
d = dllRef.sumdll(a, b, c)
But if I move the same code to a class I still get the same error as before. Why can’t this be called from a class? If I can get this to run from a class I am sure I will be able to call this from C#.
I'd like to use Registration-Free Activation of .NET-Based Components to make my application side by side.
From this article, I can't get an idea to slove my issue.
Here is the calling logic in my application. I have a dll(done by delphi) to invoke a .NET COM, but the dll will be loaded in a .NET application. I tried to add a manifest with the executable file name, but always failed to load the .NET COM. (.NET Application <- Delphi DLL <- .NET COM)
I tried a Delphi application to load the .NET COM with manifest file and it is ok. Is it possible to attach the manifest inforamtion to a DLL????
I'm using IPPort from nsoftware (IP*works) to implement a socket server
and I want to Insert de data received from client in OnDataIn event.
How should I implement the Oracle Connection and insert command?
Here is the code Example of Socket Server:
I am sorry if it not the right forum for posting outlook 2007 automation problems.
Here is my problem :
I want to add two buttons on the General Section of the Dialog that pops up ,when you click on the name of a contact (from address book).That is when you want to see more details of the person,who sent you the mail , you normally double click on the name of the person. If the person contact is already existing in your contact list a Properties dialog with sections General, Phone\Fax, Company , E-mail Addresses pops up. I want to modify the General section by adding two buttons.
I did not find any information on net, related to this.
Please let me know,how to go about this ?
"Never explain yourself to anyone.
Because the person who likes you does n't need it.
And the person who dislikes you won't believe it."
i am stuck with one kind of problem when using COM . below are the details ,
i have written a class which has a com object as a member variable. i have different member function one will create the com object other members will access the functions of the com object. the problem comes when i am trying to access function of the com .
Perhaps you are creating the COM object using one interface e.g. IUnknown or IMyInterface1 then, in your method, calling using another interface, say, IMyMethods interface which is not yet initialised? It's a bit hard to say any more without seeing more detail from yourself.
I need to check weather the monitor is on or off in windows XP. I had found that, in windows vista it is posible. I have tried it with some .NET languages, VB6 and C++. But nothing works. I have been checking for this from more than a month
I have tried all these stuffs which dose not help me.
WM_SYSCOMMAND and SC_MONITORPOWER raises event only when the monitor is switched off. That too this message is raised only when the application containing this code is set as the active(foreground) window. Where as my application needs to run in background.
GetDevicePowerState - Tried it by passing the handle of monitor which always results with the error code "6" which is "Invalid Handle". As per MS documentation this method wont work for display devices.
Win32_DesktopMonitor - In the Windows Management, I had queried the availability attribute which always resulted "3" which is "Running with Full power".
If their is anything else I had left out without trying, please post it.
Please help me with a code piece or with any refrence to the related articles.
i did a project that takes datas from the texboxes and open an excel sheet and show the datas in excel. the program works in my pc properly. but when i tried it in another pc it does not work.
gave me the error "Row height must be 0 - 255 characters long"
what is the problem i didnt find. i load the runtimes of microsoft office to another pc.
what was the error or what didnt i do?