|
If you really can perform these operations your talking about in VB.NET, then it can be done in C#. Just convert your VB.NET code to C#
Just because we can; does not mean we should.
|
|
|
|
|
Hi
I have developed a project in which i am using a external dll file
now i created a setup project ..
so whenever i am installing it on the clients PC .its giving a error
error is bcoz of that dll which was not added to the Clients GAC so how to do this i have tried these things
1. Added the reference of DLL while developing the software
2. Added the Dll To the GlobalAssemblyCache folder while doing setup
the above things dint work
when i published that project it worked
i want to do this thru the setup project .......
if anyone knows this then plz do let me know
regards
sindhu tiwari
Always Innovative
|
|
|
|
|
Did you create the DLL yourself, or is it a 3rd party DLL?
I don't know much about this, but I just recently read (in a book) some things about using 3rd party DLL's.
One of the drawbacks of using somebody else's DLL is that you supposedly cannot add it to the GAC yourself, because it's not digitally signed by YOU.
So, you'll need to manually copy the DLL to the same folder as your exe, if I remember correctly.
Beyond this, I am worthless, having never created a setup program for a .Net product yet...
|
|
|
|
|
thanks allot for ur reply......ya its a third party Dll
.....a question is copying dll to same folder will solve the problem
sindhu tiwari
its me sid
|
|
|
|
|
|
HI
i want run my web application in different system by hosting it to iis
help me with the procedure to deploy application along with database.........
thanx in advance
|
|
|
|
|
What is it you are having trouble with?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i'm try to design stock applications so i need to retrieve data from database for every one minutes...give source code using c#
sg
|
|
|
|
|
run a thread or timer ....i prefer thread ....
show the data in the datagrid view....
refresh fuction may also work
i hope this will solve problem...if not experts are here
its me sid
|
|
|
|
|
ramesh_imayam wrote: i'm try to design stock applications so i need to retrieve data from database for every one minutes...give source code using c#
Since we know nothing about your application design that would be difficult to give you source code that you can use. For example, what tables and columns do you need to retrieve from the database? Or are you using stored procedures? What database are you using? etc.
However, there are several parts to the question, and we can help on specific parts if we know more about your application. What specifically are you stuck with?
* How to perform an action at a required interval?
* How to retrieve information from a database? (ADO.NET)
* How to query the database? (SQL)
|
|
|
|
|
hi there,
i've developed a program in C# and backend is sql server 2005,
now i want to run it on another computer that is freshed installed windows xp, so will "Microsoft SQL Server Compact 3.5" work ?
if not then what should i need to install, i dont want to install sql express... nor SQL Management studio, are they last choice?
thanks
Becoming Programmer...
|
|
|
|
|
|
There is c# solution, In it there presnt 5 projects A, B, C, D, E namely.
Now among these A & B are executable i.e contain main function & rest are help projects of them.
In help projects the refrences of both A & B are not added,
there prsents some classes & methods inside A & B, which i want to use in help(C, D, E) projects.
Now my questions are,
As am having not great knowledge of programming
- What are the possible consequencies if i added the refrences to help projects?
- Is there any other way to do this, or use methods of main projects?
Thanks in advance.
|
|
|
|
|
humdumof wrote: What are the possible consequencies if i added the refrences to help projects?
If any of the A , B project referring C,D or E, then adding A & B reference to C,D or E may end up with Circular Reference.
|
|
|
|
|
N a v a n e e t h wrote: If any of the A , B project referring C,D or E, then adding A & B reference to C,D or E may end up with Circular Reference
the refrences of C,D & E are added to A & B.
As they are contain needed methods & classes.
so, what else i can do?
|
|
|
|
|
humdumof wrote: the refrences of C,D & E are added to A & B.
As I said earlier, it may cause circular reference. I am not getting any other alternative for doing this. May be a redesign of classes into projects that won't make any circular references.
|
|
|
|
|
HI,
While running my application i am getting this error.How to solve this problem.
System.Runtime.InteropServices.ExternalException: A generic error occurred in GDI+.
at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
at NClient.NClient.ThreadFunction()
Note-
Here ThreadFunction is a thread method.i get this error while i keep my system idle for long time and later trying to access.
Regards
Nags
bgfhrtydgfdhfghhdf
|
|
|
|
|
superda wrote: ThreadFunction()
What is your ThreadFunction doing ?
|
|
|
|
|
basically this program is a chat client for a java server.InSide the ThreadFuction i am handling all my streaming data(ie get the data from the server and send data to the server.).Inside the threadfunction i have
while(true)
{
..
..
code
..
..
}
methode and inside that i wil handle the streaming work here.
Hope you will understand this.
Regards
Nags.
bgfhrtydgfdhfghhdf
|
|
|
|
|
superda wrote: at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
what's the target method of that invoke call? obviously the exception is thrown there.
|
|
|
|
|
HI,
I HAVE CREATED NEARLY 3 DELAGATES METHOD INSIDE THE THREAD FUCTION.HOW DO I FIND OUT WHICH DELEGATES THROWS THE ERROR.
Regards,
Nags
bgfhrtydgfdhfghhdf
|
|
|
|
|
if you run it in debug-mode, stack trace will tell you in which line of the Thread-Method the error occurred.
or you could set break-points in the methods where gdi is used.
|
|
|
|
|
superda wrote: HI,
I HAVE CREATED NEARLY 3 DELAGATES METHOD INSIDE THE THREAD FUCTION.HOW DO I FIND OUT WHICH DELEGATES THROWS THE ERROR.
Don't shout.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I'm looking for something like the old Windows API FlushEvents().
I have a form which creates a COM object like such:
COMServerObject foo = new COMServerObject;<br />
While my code waits for this statement to return, Windows makes my form window modal. If it takes a while for this statement to return - up to 20 seconds for .NET to give up and throw an exception - Windows queues up mouse clicks and keyboard events on my form, and then plays them back once the statement returns.
This is nasty, as the user hammers away at my unresponsive window, even trying to close it. So once the statement returns, my window can suddenly fly around the screen, resize, minimize, and even close.
I've tried disabling the Form while while I wait:
this.Text = "Hey, wait!";<br />
this.Enabled = false;<br />
COMServerObject foo = new COMServerObject;<br />
this.Enabled = true;<br />
this.Text = "Hey, thanks for waiting."
And this prevents clicks on my various buttons and menus. However, it does NOT prevent clicks on the window frame or title bar or close controls, so they still get queued up.
How can I prevent these from queuing? In the old Windows API, you could call FlushEvents when you got back from a modal state, which would remove all Windows events from it's message queue. I can't find anything analogous in the .Net framework. Anybody know the proper technique, here?
|
|
|
|
|
Inside your "wait" loop, you could put in a Application.DoEvents, This will allow your form to continue to run and respond to user clicks accordingly.
Just because we can; does not mean we should.
|
|
|
|