|
Not sure but you may want to ask the author of the article...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
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.
|
|
|
|
|
twain.dll cannot be added direcly to projects
you must use it through invoking with DllImport
this may help http://www.codeproject.com/dotnet/twaindotnet.asp[^]
and there is another way for using scanners beside the twain you can do it through WIA too.
good luck
|
|
|
|
|
Read the How to get an answer to your question post at the top before posting anything else.
Hello and error are not very good subjects
only two letters away from being an asset
|
|
|
|
|
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
|
|
|
|
|
That's probably because the reference, or the ocx modifier is set to private. Try public.
|
|
|
|
|
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.
![Rose | [Rose]](https://www.codeproject.com/script/Forums/Images/rose.gif)
|
|
|
|
|
you can't get any information on the function arguments, neither does dumpbin.
that information is not available, short of interpreting the assembly code and
guessing a lot.
you can get the export list, the import list, etc. but these show function names
only. I have C# code that does exactly that.
Luc Pattyn [Forum Guidelines] [My Articles]
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
|
|
|
|
|
Hi there,
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?
Regards,
A
|
|
|
|
|
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.
But why would you want a server script page being auto-generated? its simpler to have a plain html page rigged up with some precoded JavaScript routines.
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
|
|
|
|
|
hi
i want to create help for my application.
and want to know what is best way to create help ?
and what is the way to convert a word document to chm?
tanks
|
|
|
|
|
|
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.
Rudolf Heijink
|
|
|
|
|
I want to insert a sub report in my report the data in the sub report filterd by the group data in the Main report
merwa
|
|
|
|
|
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.
Thanks in advance.
Regards,
Prasad
|
|
|
|
|
Hi there !
I want to develop simple internet chat that work like yahoo messenger, that users can chat private with them or use a conference.
Please help me, that How can I develop it with C#?
Thanks.
|
|
|
|
|
This is the ubiquitous "newbie" TCP/IP application. There are hundreds of examples out on the web. All you have to do is Google for "C# chat".
|
|
|
|
|
Hello everyone,
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.
Thanks,
Nermeen
|
|
|
|
|
FileUpload1.PostedFile.SaveAs(Server.MapPath("Data Source=ASHWINI-PC;Initial Catalog=Listopedia;Destination Table=Products;Integrated Security=False;Persist Security Info=True;User ID=sa;Password=password;User Instance=False"));
The above code is where I have chosen to upload the file a table in the Database. But looks like it does not even the read the code. This code is in the butUpload Click_Event procedure..
Help Please!!
|
|
|
|
|
with fileupload control , can not create a folder in server.
for example if you want to upload a file such as follow :
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/image/"));
and image folder not exist in your address , can not upload it.
|
|
|
|
|
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.
|
|
|
|
|
hey ,
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..."
the connectionString looks like this:
String connstr = "server=" + Properties.Settings.Default.dbHostName +
";Persist Security Info=True;User ID=" + Properties.Settings.Default.dbUserName +
";Password=" + Properties.Settings.Default.dbpass +
";Unicode=true;";
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
thanks.
Net
|
|
|
|
|
Hi
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
greets
M@u
|
|
|
|
|
hey thanks for the fast reply , sorry for posting it here i thought its something to do with syntax , anyway i was configuring my tnsnames.ora
with the net conf assistant...
i made an alias that looks like this:
ORACLESERVER =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.100)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = xe)
)
)
when i do tnsping oracle server this are the results:
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = 192.168.2.100)(PORT = 1521))) (CONNECT_DATA = (SERVER = SHARED) (SERVICE
_NAME = xe)))
OK (20 msec)
but when im trying to establish connection via my application
(the project im working on )
i get the folowing error:
ora-12154: TNS:could not resolve the connect identifier specific
on the connection string i was using Data Source="oracleserver";......
Net
|
|
|
|
|
hmm.. what happens when you remove "(server = dedicated)" for OracleServer in the tnsnames.ora?
|
|
|
|