hello.i workwith C#.net.i want to use twain.dll.i add twain.dll to my project with add refrence but there are error:"twain.dll" is not a valid assembly or COM componenet.help me for solve this problem and use from this dll.
iwork with C#.net.i download gdtwain.ocx and then add to my project with add refrence.i have error:gdtwain.twainclass.twainclass() is inaccesible due to its protection level help me for solvethisproblem.thanks
I am locking for get the function names through .Net tools like dumpbin.exe
from the dlls like use32.dll and shell32.dll it provide the name of function included int that dll but does not show the number of argument and datatype of the arguments.
Plz help me out and give me some helpful hints.
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
I want to auto generate an ASP web page which includes a display of selected data from a database.
What I am doing here is as follows;
* I've got a standlalone appdone in C#.
* I am selecting what tables I need to display using ASP, thorough the UI.
* What I want to do is, create the ASP page, so that the selected columns from the selected table will be displayed.
The generation of the ASP page is giving me trouble. How can it be done with the minimum effort?
Well, the simplest way is that you'd have a basic page laid out, and then with a string builder you can loop in a data repeater or an html table with the results.
That's as minimal as I can imagine.
Are you trying to build a report?
There are 10 kinds of people in this world. Those who understand binary and those who don't...
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
Word does not produce very efficient HTML code, but you may store a word document as HTML. Best way is to use an html editor th create all pages and import the in HTML Workshop to create the .chm file. It is abit more work, bur much more flexible. You can use full html, including style sheets (which I recommend to do). Do not forget to test the resulting chm file thoroughly, to make sure all your help texts just do what you want them to do.
I am trying to convert a Delphi project to c# project. As part of the project a C-dll is called to conduct simulation (pipe network analysis).
On some of the forms I have placed custom controls such as Numeric text boxes and ZedGraph. I am able to create these forms immediately before conducting simulation (calling unmanaged C dll). But immediately after simulation (i.e., calling unmanaged C dll), I am not able to create these forms. The application is abruptly getting terminated. I tried to debug it, and found that termination is occuring inside InitializeComponents() function (in particular, it is occuring when trying to initialize custom controls). All other forms (which does not contain custom c***rols) are working fine. I am not able to pinpoint the error. Anyone outhere could please help me in correcting the mistake.
I can email the source code if someone wishes to view it. I cannot post it here because it is a large file.
I am developing an application and I need to retrieve and save some IMAP Emails, I have successfully login to my IMAP emails and get every message by its Unique ID but the problem is that I found some messages with an empty Unique ID !!!!!
I don't how or what to do, how can I retrieve a message without its UID, Knowing that ID only changes according to sorting and other issues .
If u have any solution please advise.
You cannot save a file directly to the database like that. You MUST save the file to the file system somewhere, then write the code to write that file to the database. SaveAs requires that you supply the fully qualified path to the folder where the file is being written to and the ASP.NET app must have write permissions to that folder.
im working on a project which involve oracle database , untill now i was testing my application when the app and the oracle server are on the same box and it was working great, but now when im trying to test the application on a different box it is a failure,
when trying to establish connection with database i get : "ORA-12514: TNS:Listener does not currently know of service..."
all the info in the properties is 100% correct when i get the error...
i can ping the target machine normaly
and i get this on the oracle server Listener.log file:
19-AUG-2007 08:54:52 * (CONNECT_DATA=(SERVICE_NAME=192.168.2.100)(CID=(PROGRAM=C:\Documents and Settings\Udi\Desktop\Udi DeskTop\FileHelpersTest.exe)(HOST=PILOY-3EC14114C)(USER=Udi))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.101)(PORT=3662)) * establish * 192.168.2.100 * 12514
TNS-12514: TNS:listener does not currently know of service requested in connect descriptor
when i connect on the computer which the server is installed on successfuly it looks like this:
19-AUG-2007 08:44:56 * (CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=C:\Documents and Settings\Udi\My Documents\Visual Studio 2005\Projects\FileHelpersTest\FileHelpersTest\bin\Debug\FileHelpersTest.vshost.exe)(HOST=TEHUB3R-BCEDAD0)(USER=Udi))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.100)(PORT=1176)) * establish * XE * 0
i think when i connect on the remote computer i dont set the SID
but i didnt find any way of setting the SID , dont know if its possible at all,
Any help is more than welcome i was googling for 10 hours about this
alot of stuff about the error but nothing that made sense to my problem
first of all this doesn't have anything to do with c#. it's a Database question and should be asked in the Database Section.
you must use the "net configuration assistant" to create a local alias of the remote service. if you use the oracle .net components(provided with the oracle client software) for your connection, your connection string should look like "User ID=" + Username + ";Password=" + Password + ";Data Source=" + LocalAlias