|
so I think to calculate some equations 30 times a second (motion, physical simulation, etc)
|
|
|
|
|
I guess a Celleron 400 aint gonna cut that (especially doing realtime simulation). From your other post, are doing some DirectX? I would try optimize the calculations.
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
Hey what's up coders...
Okay I am changing between two full screen forms. Each form has it's own 24bit 1024 X 768 fancy backround bitmap created in photoshop. When I change between screens there is a very small amount of flicker [and this isn't allowed] .
So what can I do to fix this? I am thinking maybe directx is the key for me but I thought I would write you all first and see.
I am open to any suggestions.
|
|
|
|
|
|
Hey Mark thanks man but me thinks... The flicker comes from the switching of the forms. The drawing comes afterwards... Unless there is another way to tell the form to draw the background..
thanks,
Lata
|
|
|
|
|
although it is a little bit stupid...how about use another graphic object to load that bmp file before display it.
|
|
|
|
|
who can help me reading the header of an avi-file from my C# application?
i want to get some informations like width, height rate/sec. etc.
do i have to use unmanaged code and call API functions?
i am a beginner so maybe someone could send me sample code
|
|
|
|
|
I tried to find or create a c# component to create a query by drag and drop tables and fields (something like Access Query design). Any idea, please help me.
regards.
|
|
|
|
|
There's one in VS.NET....other than that Im not sure.
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
www.devcity.com where working on one a while back! Don't know whats happened to it though!
|
|
|
|
|
I tried to integrate a flex program with C# the way I used to integrate with VB6 but nothing is happening.
I want to know the correct way to do it. Is there any DLLs I have to attach?
Pls help me.
Thanks.
kind rgds,
Anjana Aluthwala
|
|
|
|
|
I'm new in working with exe files so i wanna know..
How i can get the size of the header of an exe file. or read data from it.
i read about exe file format and i knew that header size is stored @ 08H. is that true?
if it's true then i tried to read the 8th byte but it contains zero!!
if not then what's true.
thanks 4 All
plextoR
|
|
|
|
|
If you're refering to the PE/COFF header, a lot more is typically involved. Take a look at Shell Extensions for .NET Assemblies[^]. I read the header to accomplish something else but a simple branch in code would get you what you want. There's also an article in MSDN Magazine (you can see it online from MSDN[^]) that contains more in-depth analysis of the header. Either should be a good place to start.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
|
Thanks Alot but sorry i can't understand what do you mean with PE/COFF . As i told you i'm new with this operations.
i'll read the article .. thanks alot
plextoR
|
|
|
|
|
If you're going to work with executable headers (which aren't just .exe's BTW), you have to know what PE/COFF headers are. The Common Object File Format actually started back on VAX/VMS. Microsoft modified it with a Portable Executable header which contains a sort of bootstrapper that is actually a small DOS executable (yes, even in NT). The PE header is just a bunch of structures with pointers to other structures and a lot of flags. For instance, the difference in the headers for a .exe and a .dll is a single bit.
You can find a couple really great articles about reading PE/COFF headers written by Matt Pietrek for MSDN Magazine at the following locations:
Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format[^]
Inside Windows: An In-Depth Look into the Win32 Portable Executable File Format, Part 2[^]
You may be interested in a utility he wrote called DUMPBIN. Microsoft distributes it with developers studios, so it's probably already on your system.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
|
Hi,
I am writing a program with a database ( xxxx.mdb), and the data set is displayed on a DataGrid.
I've implemented an Add function to add new record and it's ok.
But I can't delete an existing record. The following code is what I've used.
this.BindingContext[dbProductSet1, "Products"].RemoveAt(this.BindingContext[dbProductSet1, "Products"].Position);
It runs ok, but the record can't be deleted. And, when I later execute:
oleDbDataAdapter1.Update(dbProductSet1);
An error occurs saying: "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows."
Afterward, I added this line and tried again:
dbProductSet1.Products.AcceptChanges();
The error message is gone and it seems ok, but in fact the "deleted" record isn't deleted!!
Can anyone please give me comments?? Thank you!!!
|
|
|
|
|
Once you do DataSet.AcceptChanges() or DataTable.AcceptChanges(), a DataAdapter no longer sees your changes and therefore doesn't call the required command. DataAdapter() uses DataSet or DataTable.GetChanges() to get a DataSet or DataTable with just the changes and it knows (based on state) which rows have been deleted, inserted, or updated. So, as the error states, you need to assign an OleDbCommand to the DeleteCommand property of the OleDbDataAdapter. That way, when it runs across a record that has been marked for deletion, it'll call the appropriate SQL statement to delete the record.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
|
how can i hide the console in my exe program until i call apon it too be opened (in this case a -console commandline paremeter)
jesse m
|
|
|
|
|
Just shooting from the hip here.
If there isn't any solution buried in the MSDN docs, or some bizarre method lurking on some System object, why not make your program a WinForm that hosts your program and mimics a console instead. That would give you a *much* higher degree of control than you would need (room to grow even).
If you absolutely need to use the Console.Readline/Writeline for i/o, I suppose you could try "hijacking" the streams already supplied by the class for display. The Console class supplies methods for opening and setting the Input/Output streams and TextReaders (respectively).
.. anyway, give it a shot, and good luck.
- Eric
Calling a function is like tying your shoe. Remoting a function is like tying someone else's shoe... while they're running around... in China.
|
|
|
|
|
yeah i think ill just make my own kinda console on a seperate class / dll (ill have more room to grow and do other stuff with it like you said..besides games like tfc definitly dont use a standard C++ console lol)
thanks alot eric for the info..
|
|
|
|
|
How do you cast the object ? I keep getting the error "Can't implicitly cast ..."
ResultClass 1Result = new ResultClass()<br />
<br />
IEnumerate resultsEnum;<br />
resultsEnum = Results.GetEnumerator();<br />
<br />
while(resultsEnum.moveNext()){<br />
1Result = (ResultClass)resultsEnum.Current<br />
<br />
}<br />
I have a class full of results (Lets call it results) and each index contains a result object(or 1 result).
Problem is when I enumerate the class "results" I can't cast into the 1Result class .. Anyone ?
Ex.
By the way the references are COM objects and the 1Result is a variant.
Thks in advance !!!
|
|
|
|
|
First you can't / shouldn't start variables with a number. Second, GetEnumerator() returns an IEnumerator, not IEnumerate. That's why it can't cast. Your last line of code is correct.
"Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons
|
|
|
|
|
I am facing some difficulties with the licensing scheme in .NET.
I have created a solution with 2 projects:
- a licensed windows form .NET control (written in C#)
- a small application hosting the control (written in VB)
Currently, I just try a basic licensing using the .NET LicFileLicenseProvider.
I am quite sure to have written the code as indicated in the .NET doc.
However it does not work. The license exception is raised except is the license file is placed in the application exe directory. It seems that no license key has been embed in the .exe.
Does anybody has faced such a problem? How to solve it? (I use .NET v1)
|
|
|
|
|
yes i had the same problem first.
but i think it will be solved if you simply compile your control first (in a separate solution)
then open your host app .
add the control to the toolbox , and place it on a form in the host app.
(your license file should be located in the same dir as the .dll)
now vs.net should generate a "licenses.licx" in your host app..
(you will only see this if you show all files in the project explorer)
if you open the "licenses.licx" it should contain something like:
"MyControlProject.MyControl is a licensed component"
and the "licenses.licx" should be an "embeded resource".
if all this apply , your licensing should work...
//Roger
|
|
|
|
|
Thanks very much.
I have followed your advices and have finally been able to solve my problem!
|
|
|
|