firstly you are using a reader with a dataset and that confuses more.
if you want to retrieve what is in the command object and in future you won't manipulate the data, you should use only a datareader.so you have combined dataset and a datareader. your code above can be written like this
OleDbConnection con=new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\JET PRINT LIMITED\\JET PRINT LIMITED.mdb");
OleDbCommand comm = new SqlCommand();
comm.CommandText = "select * from STOCKDET";
MessageBox.Show("data into Combobox successfuly!!!");
Hope it helps
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
I m getting an error "Virtual memory is to low"; while running my real-time application that is developed in C#.In our application, we are capturing the Live video and transmitting on LAN as well. IS IT ANY hARDWARE PROBLEM
Also check the max page file size (My Computer -> Properties -> Advanced -> Performance -> Settings -> Advanced -> Virtual Memory) and see if you are close to that limit (Task Manager -> Performance -> PF Usage).
I wount to use the HASP Security Device By Using C#.Net .
But I Dont Know How i Can Use It .
How can hellp me About US .
if Any body have Dll About it Sent it To Me .
Thanks for any body hellp me
I have declared an internal class to store the functions of the MFC DLL
internal static class Translate
//Importing unmanaged Translation DLL
#region Translation DLL
[DllImport("ECTalc.dll", ExactSpelling = false, EntryPoint = "EC_newInstance")]
public static extern int EC_newInstance();
[DllImport("ECTalc.dll", ExactSpelling = false, EntryPoint = "EC_initSys")]
public static extern int EC_initSys();
[DllImport("ECTalc.dll", ExactSpelling = false, EntryPoint = "EC_quit")]
public static extern void EC_quit();
[DllImport("ECTalc.dll", ExactSpelling = false, EntryPoint = "EC_destroyInstance")]
public static extern void EC_destroyInstance();
After which at a point, I have these two statements:
However when my program loads, Translate.EC_newInstance(); is able to load but not Translate.EC_initSys();
The given error is as follows : "Error reading system data files. Please reload the files."
Could anyone enlighten me on this problem?
I created a class library project dll , i wanted to add this dll in the windows/assembly folder for the purpose of making it public assembly.
For that , i created a strongname key file , then i added that file information in the assembly file of the classs library project dll.and afterwards i build the project and finally i wrote the following syntax
gacutil -i "dll path"
this added the dll in the assembly folder.
now whenever i try to add the reference of the dll in the new project
should i get my dll (which is now in the assembly folder) in the dialog box of add reference .
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
I need to develop an applicaion to control over printer,
It should support-
Print Test Page
Get User name
Get IP Address / system name
Get Printer status
Current Printed page count
Toner Status etc.
Is this possible to develop this application using Printer Job Language (PJL) ?
your quick help is appreciated.
Last Visit: 31-Dec-99 18:00 Last Update: 24-Jun-21 12:45