-
- Error using an external method importing a dll in C#
by JosepMola
- 0 Replies
- Last post
by JosepMola
- Hi, I'm using an external DLL programed in C. I call a function from this dll that returns me a struct Function Header in C: DatosAdCruz PruebaAdCruz(unsigned char* imagen, int ancho, int alto,char* path) DLL Import in C#: [DllImport("Pinturas.dll", EntryPoint = "PruebaAdCruz", SetLastError = false)] public unsafe static extern Clases.DatosAdCruz PruebaAdCruz(byte[] ima
-
- Difference between Internal and Protected Internal
by gomaz
- 9 Replies
- Last post
by Ye Yan
- Hi All, What is the Difference between Internal and Protected Internal I need some real time example. Regards Gomaz
-
- VS 2005 -- How to display line margin for 80 characters?
by coltsith
- 5 Replies
- Last post
by Figo Fei - MSFT
- I'm trying to follow good coding guidelines by limiting each line to 80 characters. How do I get VS2005 to display a line margin to help me stay under that Thanks!
-
- C# class file template uses wrong namespace.
by Rudedog2
- 7 Replies
- Last post
by Rudedog2
- All that I am looking for is to start a new class file with all of my favorite 'using namespace' references ready to go, But it changes the namespace references.
Either I am using it wrong, doesn't work the way I think it should, or it is not working properly. Creating templates is simple enough, just File->Export Template. Select "Project Template" or "Item Template"
-
- DLL for extended stored procedure in C#
by sidzone123
- 1 Replies
- Last post
by Peter Ritchie
- Hi All,
Is there any way that I can create a dll file for Extended stored procedure(SQL server) in C#
I an able to create that in VC++. in VC++ there is DLLMain which serve as entry point and a paramter can be passed to it using Extended stored procedure. But since C# does not have any such entry point. Hence is there any way that I can achieve this
Any pointers to this will
-
- Executing Code During Installation
by Nitsua
- 4 Replies
- Last post
by Peter Ritchie
- Hi Again, For my current project I need to execute some custom code after the program installation has already been preformed. Unfortunately, I have no idea how to accomplish this. I am building the installer using Visual Studios 2005 and any help would be greatly appreciated. Thanks
-
- Incremental builds in Visual studio 2005 professional edition?
by jvnb.kiran
- 5 Replies
- Last post
by TaylorMichaelL
- Hi,
I am unable to see the incremental build property in Visual studio 2005 IDE
I was searching in project property pages -> Build -> Advanced button but the incremental build property is not available for setting
it is building entire solution every time which takes more time.
can any one help me
thanks in advance
Kiran
-
- using Vb and C# projects together how I can goto source code directly instead of object designer window
by
- 6 Replies
- Last post
by Mehmet Tezel
- when using mixed (C# and Vb projetcs together)
If I want to goto definition of a (class,function, member etc that is located in a C# project) from a vb project file
visual studio brings me the object designer window
my question : is there a way to go to the source code directly
-
- code analys tool
by ognjanovic
- 9 Replies
- Last post
by Peter Ritchie
- Can someone, please, tell me some good code analys tool (find unused code, ...) for c# (VS2005) that is free. Thanks.
-
- Property generation shortcut?
by LKeene
- 1 Replies
- Last post
by Daniel Kuppitz
- I'm starting to get tired of typing in the tedious code for property declerations in my custom classes. It's also very prone to typos. Is there a shortcut in the IDE that will "autogenerate" a property decleration based on a name I provide, etc.
-
- Get window handle
by deviparimala
- 6 Replies
- Last post
by deviparimala
- Hi All,
Is there any possibility of getting the handles of all windows which are present in the taskbar.
I need to track down which window is being closed and display a message stating the file name of the closed window.
-
- Calling into managed code from unmanaged DLL w/o using a function pointer?
by Michael Reiland
- 10 Replies
- Last post
by Citizen on the earth
- I've written an unmanaged DLL in C++ and I need to call back into a single function on the managed side. My solution was to accept a function pointer through the DLL interface and invoke said pointer as necessary using __stdcall. I'm not that experienced with INTEROP and I don't understand how this is possible without the use of a function pointer. Is there some form of "magic" via .Net
-
- Calling methods of a class without creating an instance of it
by Blackened.pt
- 7 Replies
- Last post
by Blackened.pt
- Hi, I'm sure this probably has been answered before, but somehow I couldn't find it, so really sorry about that. But how do you call methods of a class without having to create an instance of it I mean, in my project I have something like: public class FileOperations{ public void read_config_file(...) { (...) } } And I want to call the read_config_file(who do
-
- Text merge
by chanmy8
- 3 Replies
- Last post
by In Love With Dotnet
- Hi, I would like to allow our consultant/user to define receipt layout in text file as below. Then I can substitute it actual value and print it out.
Code Block
<<Header>> <<center>><<Company Name>><</center>> <<center>><<Address>><</center>> <<underline>>Item Qty Price SubTot
-
- Disabling a method in a derived class
by J Buckman
- 13 Replies
- Last post
by Rudedog2
- How do I "disable" a method from a base class in a derived class I could throw an exception in the derived class, but that doesn't alert me until run time.
As an example, suppose Class A has three methods X(), Y(), and Z() and then I derive classes B, C, D, and E from A. But, I don't want class D to have access to method Y().
I know I could make a class A1 with only X()
-
- dll methods when imported working in window application and not working in web application
by sridhar_msd
- 7 Replies
- Last post
by TilakGopi
- Hi
I have a tool with registered license. when i import the tool dll and worked with its method in a window application it was working fine without any problem.
But when i tried the same dll method on web application its not working giving the error as "Object Reference not set to instance of an object".
Please help me on this
Its urgent
Thanks in advance
Sridhar Manoha
-
- check the version of an installed program
by ashk1860
- 5 Replies
- Last post
by ashk1860
- hi
How can I check a computer if a specific program have installed and also check its version if it is installed
thank you in advance
regards
-
- Access Denied to system32 folder, writing to file
by PaulRom
- 14 Replies
- Last post
by PaulRom
- I have a web aplication with a custom dll in the gac. My aplication writes to a file that is held in the system32 folder. When the web aplication is run. an error message stating access denied occurs. I need to be able to write to the file and the file cannot move location.
Any help would be fantastic
Thanks
-
- Inline method in C# !!!
by gr_arm
- 9 Replies
- Last post
by Peter Ritchie
-
- Online games
by Mickey Want
- 3 Replies
- Last post
by Thomas Koelle
- me and a mate are looking into making an online game and i was wandering what would be the best code(e.g. visual c#, java#)
-
- Windows application form change
by rangrjay
- 1 Replies
- Last post
by Leon Tayson
- I'm new to windows application programming, and I am having some trouble.
I've got a form that has some controls on it, and when the fields are filled and the 'Enter' button has been clicked I want the form to close and open up another form.
How is this done, or is there a better way to create an application that has 4 different forms
-
- How do I send a close message to close an windowless application
by Iluz Meir
- 3 Replies
- Last post
by Iluz Meir
- Hi,
I have two application :
One - Window application that implement the closing event to perform a tasks before closing
Second - Service application that run the Window application by performing the Process.Start comamd. and close the Window application by performing the Process.CloseMainWindow command and the window application shall terminate normally
When the window applica
-
- How can I check if a file is an MS Word doc without relying on the file extension?
by Hughsieman
- 3 Replies
- Last post
by Ming.Chen
- Hi I am trying to use C# to find out if a particular file is an MS Word document without having to rely on the file extension. I'm sure there must be a way to do this as Windows manages it. For instance, if I create a Word document and then save it, then remove the extension and double click it, the file it automagically opens in Word. It works for Excel as well. Any assistance would be very much
-
- C#/MSMQ Issue
by Yort
- 9 Replies
- Last post
by Yort
- Hi,
I have a problem with a C# app using MSMQ. The problem has just started occurring in the last week or so. It is happening on both an existing PC and a newly installed PC, both are running XP Pro - the problem does not appear to occur in W2k3 server.
The setup is this;
I have a w2k3 server running a windows service which listens to several message queues for requests, and s
-
- How can I share multi project with ?
by MJayyab
- 3 Replies
- Last post
by boban.s
- I ahave 2 projects
how can I share variables between proj1 and proj2