-
- embedding an access database file to exe
by bharky
- 1 Replies
- Last post
by Alberto Poblacion
- Hi,
I am currently developing an application that uses an access database. The data in the database will be constant (no updates, no additional entries will be done)
What i want to do is, instead of carrying this access file with my application to everywhere, embedding it into the program.
Is there a way to compile the access file into my executable file So the only thing to t
-
- Problem with winspool OpenPrinter DllImport in 2005
by -Antilles-
- 7 Replies
- Last post
by Glamiac
- Hi,
i have a component which scans the spooler of a printer.
in Framework 1.1 it works fine but in 2.0 i got the following exception when i open the printer:
PInvokeStackImbalance was detected Message: A call to PInvoke function 'Dornbracht.Odis.Server.PdfPrinter!Dornbracht.Odis.Server.PdfPrinter.Spooler.PrinterSpooler::OpenPrinter' has unbalanced the stack. This is likely because the man
-
- Creating a DLL in C#, then run regsvr32 and get "no entry point" error More options
by locoHost
- 2 Replies
- Last post
by Mattias Sjogren
- Hello, thanks for reading :-)
I built a custom DLL in C# that works just fine dropped into other .Net projects build in VS 2005. However, I wanted to create an instance of this DLL within a Classic ASP page. Of course, to do this you must register the DLL. It try to register and I get an an error about "DLL loaded but DLLRegisterServer entry point was not found. DLL not registered". I
-
- Microsoft Agent 2.0 Usage under C#
by Kamwing
- 4 Replies
- Last post
by Citizen on the earth
- I would like to develope my application using msagent under VS2005 C# environment. I have encountered a problem of when I run my application without debugging, it runs after the application is built for 5 mins. Besides, when I press the button to execute the coding, ISystem.Runtime.InteropServices.COMException error and FileNotFound error will be occured. Where should I place the character files u
-
- Unable to cast to an Interface
by Isolda
- 4 Replies
- Last post
by OmegaMan
- Hi,
I have an assembly with a class that implements an interface (ILogView).
At some point I need to create an instance this class in another assembly and call one of the interface methods. When I do that, it does not evaluate as ILogView.
//MyAsm.dll
public class MyClass : LogSink , ILogView
{
...
}
Now when I load this assembly and get MyClass type,
-
- Date & Time
by ABCsharp
- 8 Replies
- Last post
by ABCsharp
- hi,
im doing a project and i am required to display date & time. however, im unable to get the codes online, i tried researching but to no avail. can somebody help me on it. i jus want to get the current time n date. thanks.
-
- ThreadStaticAttribute and managed/native threads
by Thomas Danecker
- 3 Replies
- Last post
by TaylorMichaelL
- Hi, I've just some question to the ThreadStaticAttribute:
Have thread-static fields different values per managed thread or per native thread
The second case introduces some critical problems (e.g. with fibers, thread-sharing, etc.).
And does the ThreadPool share managed threads or native threads
-
- Foreign Key Combo Boxes wont change.
by tvance929
- 5 Replies
- Last post
by tvance929
- Hey everyone,
I was going through this database tutorial. It had me make 3 tables 2 of them had foreign keys to the primary one.
I set everything up - grabbed the main table from the dataset (made the foreign keys combo boxes) and then drug it to the form.
I get everything I should - it all looks good. I have the navigator and the tools and the combo boxes populate BUT they on
-
- Why using "method-less" enums in a OO language such as C# ?
by TomJ72
- 14 Replies
- Last post
by TomJ72
- What do you really win by using enums compared to implementing a typesafe enum with a class or struct (except from saving some inital time, since an enum is quicker to implement) Can you get a significant (measurable/noticeable) performance gain with enums Otherwise, what is the point of using them I am asking this question, because I once started to use C# enums since I thought it was conveni
-
- Streaming from Webcam
by Stuby085
- 4 Replies
- Last post
by Stuby085
- I'm currenty trying to record webcam videos with a goal to send them over the network. I've managed to get the webcam to function using a couple api calls to avicap32.dll and user32.dll. The problem with the way its working is that the webcam images are being directly displayed in a capture window. I do not get to see the information being passed along. I've figured out a workaround for this by us
-
- How do I convert a 4-byte array (of type bytes) into a 4-byte floating-point?
by Furqan Farooqui
- 4 Replies
- Last post
by Furqan Farooqui
- Okay, how do I convert an array of bytes into the 4-byte floating-point number with the same binary representation
What I'm trying to do is, that when I loaded a binary file into memory, I want to be able to set the four bytes of a byte array to some values, and then retrieve the value in floating-point.
In C++, this would've been rather easy using pointers, as shown :
char buffer[4]; //
-
- what does this code block call?
by henrytheinspectorlee
- 14 Replies
- Last post
by baldmountain
- public foo() { ... { //what this block of code call } ... } I recall reading this somewhere but had forgotten. I have a private function call within that code block, will it behave differently if I do not enclose the function call with { }s Thanks.
-
- Designer toolbox problem
by BilalShouman
- 4 Replies
- Last post
by BilalShouman
- hello guys
I have this silly question, Im trying to create a new web application(2003), and I cant find the "Web Forms" nor "Html" tabs in my toolbox, i tried "show all tabs" but still I cant find them, is there any way that i can get them back to my tooldbox without having to add each control one by one
Thank you
-
- Receiving data sent from a C++ socket...
by yabansu
- 2 Replies
- Last post
by RizwanSharp
- Hi,
In C++, I wrote a small send function which sends a string through a socket as the following:
void Send(string input) { char buffer[512]; strcpy_s(buffer, input.c_str()); if (send(sock, buffer, sizeof (buffer), 0) == SOCKET_ERROR) return ; }
I want to receive the above data in C#, but how I tried many code snippets but none of them worked.
Can you please help me
-
- any code snippet can use current Date and current file name?
by H. (&#2090
- 3 Replies
- Last post
by Chris Brandsma
- or any MACRO I can use to accomplish this when I insert a copyright code snippet into my code ClassName() function can output the class name but I need to put copyright snippet at the top of the file, outside of any class so it doesn't work for me. many thanks.
-
- C++ and C# data types
by Azurewrath
- 2 Replies
- Last post
by Azurewrath
- Hi,
I wonder if c# has the same data types for numbers like c++, by means of precision and storing large numbers.
Here it lists them for c++: http://www.cplusplus.com/doc/tutorial/variables.html
But I am not sure what's the corresponding data type for long double Decimal
Also from the above link, it looks like long double and double has no difference. Is this true
Thanks
-
- delegate in C#
by Rabiul
- 8 Replies
- Last post
by Rabiul
- Is delegate useful without parameter Say, if I have a delegate that doesn't have any parameter, then is that delegate useful Thanks
-
- Constraints of the ? - operator
by mhoffmann
- 5 Replies
- Last post
by mhoffmann
- Hi,
here's my 1st post to this forum
I'm a C# - newbie, but I 've been programming in C since the 80's ( but then did nothing in the C++-era )
My most beloved operator in these days was the -operator, avoiding if/else - structured code in simple
cases.
In C# now, I found, that statements with the - operator cannot stand alone and must always have
a context of an assignment,
-
- Whitespace problem with command line process in a C# app.
by JonathanOwnbey
- 1 Replies
- Last post
by Steve Py
- I have a an application that creates and runs a batch file for an ftp process. I have the download set to the absolute path of the app. When I attempt to run this app in debug, the batch file fails because of the whitespace in the download path.
Any advice is appreciated. I am still in the process of scouring the web for an answer. Code follows:
Code Snippet
try
{
-
- How to call .NET 2005 assembly from .NET 2003?
by Jessica Alba
- 3 Replies
- Last post
by Figo Fei - MSFT
- Sample source code will be great.
Thanks
-
- 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete
by Musafir
- 6 Replies
- Last post
by Teej.
- Hi,..
I have created a windows application using c#. when i execute my application, i am getting an warning message as:
Warning 29 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
I have wriiten the code as :
lblMessage.Text = System.Con
-
- Converting UTC to local time
by WRBehning
- 14 Replies
- Last post
by JoseBonifacio
- I have an application that is designed to schedule certain activities to run at certain times on various servers located around the country. Actually, the app is similar in functinality to Windows Scheduld Tasks. Anyway, one requirement is for the app to be able to recognize and convert datetimes to the local server's timezone.
I am storing the data in a SQL server table. 
-
- I cant get C# to perform a simple division!
by cav75
- 1 Replies
- Last post
by Harsimrat
- The following code show the problem, I get 0 as a result when I expect 0.5
I would be very grateful for help from the community.
Paulo C.
namespace ConsoleApplication1 {
class Program {
static void Main( string [] args)
{
test t = new test ();
List < double > list = new List < double >();
list.Add(3);
list.Add(4);
double r = t.comput
-
- how to : playlist for music player
by caspar_off
- 1 Replies
- Last post
by ahmedilyas
- Hi I would like to create a simple music player, and the problem is I don't know how to create a playlist so it could show whole list of songs [ from dataBase ] and if we double click on the song sth happens [ song is playing ]. please help me :)
-
- How to extract win32 native resource from a .net assembly ?
by Ram Kumar K
- 3 Replies
- Last post
by Ram Kumar Karnataka
- Hi, Can anyone please let me know how to programmatically extract win32 native resources(especially images) from a .net assembly Thanks, Best Regards,