|
how can we create an executable file.
i.e.,. to run a c file with graphics(exe file) we need BGI file. but consider DAVE game it run without any supporting file, how it is possible....? can anybody help to create my own executable (c graphics exe file )file that run independently with out need of any supporting file...
|
|
|
|
|
You can ask this question a thousand times. We still don't have any clue what your talking about. BGI file?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Based on the reminder Colin gave me...
You'll have to rewrite the C .EXE. BGI stood for Borland Graphics Interface and supplied the library functions that the application used to draw a user interface on the screen. Since it was written in Borland C, you'll have to rewrite it so you can use Windows for its interface. That way, it won't need the supporting files, they're already built into Windows.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How could I order "categories" in the propertygrid according to my will?
|
|
|
|
|
Server:
PC win2000 with network shared printer hp1320
Client:
PC win2000
When run print preview on client all is ok, but when run print from client
to server printer not print all (only print part of report = left and top
corner). Why?
|
|
|
|
|
Always assume it's your code, not the framework. That is almost certainly the case.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I m getting the following exception for provider while importing an excel file and creating table with its column names in sql simultanously.If anyone can help out with it.
An unhandled exception of type 'System.ArgumentException' occurred in system.data.dll
Additional information: Keyword not supported: 'provider'.
The string i have given is:
Dim str As String = "Provider=Microsoft.Jet.SQLDB.4.0;Data source='" & Me.BrowFile.FileName.Trim & "'; Extended Properties=""Excel 8.0;"""
Dim connstr As String = "data source=com14;initial catalog=master;user id=sa;password=sa;"
thanx.
nupur
|
|
|
|
|
I need some help. I'm trying to construct a function in the best manner.
I have a class. This class wraps several API function calls. The function in question wraps NetServerEnum. As many of you know, NetServerEnum has a paramter called "level" this parameter dictates the level (amount and type) of information retrieved on each server.
Rather then creating multiple functions for each level I wanted to create one function that the code could call, passing what level to use. This part is fairly easy. Create a public enum in the class which sets the level value to 100 or 101 respectively. Now, where I run into the problem is the structure. The data returned from the function for each level has a different structure.
I have 2 structures that represent the levels and I have a class for each level that will hold the collected data.
I have no problem getting any of this to work if I limit the function to dealing with just one level. I'm not sure how to write the function to handle both levels. I've tried initially setting a variable to object then using DirectCast to cast the object to the correct structure based on the level passed. This just doesn't seem to be working right. Could someone please help me set this up properly???
|
|
|
|
|
You could try passing each type of structure to the function as ByRef parameters and then interpret which one to evaluate when the function returns based on the level parameter.
Robert
|
|
|
|
|
I think that would just confuse a developer. I know I would be confused if there were two extra parameters that I had to pass to a function because the function wasn't able to make up it's mind to do it.
I know there is a correct way to do this, I just don't know what it is. Microsoft does it with the NetServerEnum itself. There is only one function, but when you pass the level it knows to use the appropriate structure.
|
|
|
|
|
THerman wrote:
Microsoft does it with the NetServerEnum itself. There is only one function, but when you pass the level it knows to use the appropriate structure.
What the API does is pack all the data into a single byte array. Since each structure contains only DWORDs and LPWSTR pointers, they are always a fixed size - either 8 bytes or 24 bytes. (You are lucky, since each structure in this case is already DWORD aligned, you should not have to worry about padding bytes between structures).
The API splits the byte stream at the appropriate lengths based on level and puts each structure into an array.
This is easy to do in C++. Not so easy in NET.
Look at this website - search for "netenumserver" under the appropriate library section. There is an example of using the NetServerEnum API in C#.
http://pinvoke.net/[^]
Robert
|
|
|
|
|
Hey what's up everyone....
I have been trying to figure out how to get my applications to dock in windows. I have a bunch of apps that I would like to add that feature to but I can't figure out how. I would my apps to be able to dock in windows like you can dock the taskbar in windows. If anyone can point me in the right direction I would really appreicate it.
Thanks
Thanks cPod....
|
|
|
|
|
first, you need to put all the forms as mdi children.
then in the mdi parent u do the following:
Me.LayoutMdi(MdiLayout.Cascade)
Me.LayoutMdi(MdiLayout.TileHorizontal)
Me.LayoutMdi(MdiLayout.TileVertical)
|
|
|
|
|
Hey people!
I’m trying to create something that will keep track of what I am printing to the network printer and also to add the SN to each printed page. In my understanding I need to “listen” on a local computer if the print job was sent to a specific printer, if yes then let say get or ask the user to type the Memo, and generate add-on SN to the file and then send it back to the printer. Obviously I don’t even close idea on how to do that in VB.net
Can some one help me on that, thanks a lot!
Alexus
Yes I’m still here!
|
|
|
|
|
First, not to scare you or anything, but you're in for one of the most problematic app's of your life.
The .NET Framework has nothing in it that will help you with this. You'll be P/Invoking the Win32 Spooler API's and will probably be writing an entire class library around them.
Also, the Spooler API's change event notification system CAN and WILL drop notification events if enough changes occur in a quick enough time. This means the possibility exists that you won't know that a print job was started. Also, you don't get instant notification of the events either. So, a job can start printing before you get the notification.
That doesn't even mention that probles your going to run into changing the job. BTW, what do you mean by "SN"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
SN - Serial Number (just for future reference, if I need to find the document or reverse look up in db)
If it is so complicated is there a way around? Dont I first send a job and than print it?
|
|
|
|
|
tempgp wrote:
If it is so complicated is there a way around?
You're kidding, right?
tempgp wrote:
Dont I first send a job and than print it?
No. The job (by default) can be sent to the printer as it's still spooling. What you see in the job is not GDI code, it's the language the printer understands, whether it's PostScript, PCL, RAW, whatever.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In my main App I run a long running process on a seperate thread so as not to tie up the GUI - while the process is running I want to set the Cursor to the WaitCursor. The first thing the long running process does it fire an event which is handled on the GU thread and sets the cursor to the WaitCursor then when the process has finished it fires another event which is again handled on the GUI thread and sets the Cursor to default - however, the cursor never actually changes to the WaitCursor
The long running process fires off an event every 1000 records or so which is handled on the GU thread thus:
<br />
Private Delegate Sub xxxDelegate(ByVal sender As Object, ByVal e As xxxEventArgs)<br />
<br />
Private Sub xxx(ByVal sender As Object, ByVal e As xxxEventArgs) Handles LongProcess.xxx<br />
<br />
If button.InvokeRequired = False Then<br />
Console.WriteLine("A - " & Cursor.Current.ToString())<br />
...<br />
Else<br />
Console.WriteLine("B - " & Cursor.Current.ToString())<br />
Dim del As New xxxDelegate(AddressOf xxx)<br />
Me.BeginInvoke(del, New Object() {sender, e})<br />
End If<br />
End Sub<br />
When run the following is written to the console:
B - [Cursor: WaitCursor]
A - [Cursor: Default]
B - [Cursor: WaitCursor]
A - [Cursor: Default]
B - [Cursor: WaitCursor]
A - [Cursor: Default]
...
Why is this?
|
|
|
|
|
First, since your long running thread doesn't do anything with the GUI, it should not be the thread that changes the cursor. This should be handled by the GUI code just before it launches the long thread. When the thread completes, some kind of event or signal is raised on the GUI thread that started the long thread. Then with signal occurs, the GUI thread handles changing the cursor back to normal. GUI effects only on the GUI thread!
If your long running thread were to be used in a console app, how would it know that there was no cursor to change? Get the idea yet?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It is the GUI thread which changes the cursor - the long running process just raises an event to say it has started then one to say it has completed - these are handled on the GUI thread.
|
|
|
|
|
There have been many posts on dynamically displaying images in a Crystal Report, but none of the replies have helped me with my problem... Hope somebody has the answer
Using: VB.Net 2003 with CrystalReports.Net 2003 and MS Access (XP) DB.
I have a table with images (have tried .bmp and .jpg) stored as OLE type.
My CR DB at design time is XML schema file which contains my image field as a base64binary type.
I've dragged this field onto report creating an IBlobField. At runtime the image is not displayed. I have tried multiple resolutions (72 - 300 dpi) and image sizes. Does the Blob field resize the image for you? When I insert the image statically from the .bmp or .jpg file at design time, it displays correctly.
On another note: Anyone know what the best resolution to use for inserting images into a CR. Often the images I've inserted have appeared distorted. I'm trying to add an electronic signature to the CR.
Thanks for any help I can get!
Kevin
|
|
|
|
|
Hi, I created windows chat application. It's working properly, but only one problem is there. When any client type message & send it to common window, server give responce but that message displayed only that client's common window other clients can't see that message. So please tell me that when any one send message using which code server send that message to all clients?
If possible please give me code for that. Thank you very much.
|
|
|
|
|
So in other words it works for people who talk to themselves ?
It's pretty much impossible to help you here, you need to provide some code and let us know what you're trying, so we can point out where you're going wrong.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am working on a project for work, and was wondering what the best choice for data storage and recall would be. I only need to save three pieces of data per line, but need to be able to search with a match on two of them.
example:
data1, data2, data3
select data3
from ?
where data1=string1, data2=string2
While I realize that this is not proper coding for SQL, it is just and example. Any help would be greatly appriciated.
Mega1
|
|
|
|