hoosierboy's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. This chap says
In a thread on this forum there is an interesting discussion that I'm wondering what your opionions are concerning it. (I hope this is the right forum for this..) Chap A Graphics API's completely extract the graphics cards so the programmer doesn't have to worry about dealing with each type of card a user might have. There is no reason he should ever have to or even want to deal directly with the graphics card. He also doesn't have to have a language with a direct interface to assembley. Some languages are better then others for a project like this, but being able to paste assembley into the code is not a r ...Show All
Visual J# Crash in Serialization + Multiple Threads
I encounter NullPointerExceptions when I use Java-Serialization in multiple threads (.NET v1.1.4322, vjslib 1.0.5000.0). Here my test program: package SerializationCrash; import java.io.*; public class Program { public static class Transfer implements java.io.Serializable { public int _a; public String _b; public double _c; public Transfer() {} public Transfer(int a, String b, double c) { _a = a; _b = b; _c = c; } } public static class Runner implements Runnable { private int _no; public Runner(int no) { _no = n ...Show All
Visual Studio Express Editions Visual C++ Express application to Run on .Net 1.1
I have installed Visual C++ Express, which installed .Net 2.0. I have bult a small application in Visual C++ Express which runs fine of this development machine however the application is destin to run on machines that only have .Net 1.1 installed. I have read that applications built on .Net 2.0 are not forward compatible to run on earlier versions on .Net. Therefore my question is "In Visual c++ Express how do I build an application that will run on .Net 1.1" Thanks AFAIK, you can't. But, .NET versions live side by side, your users can install .NET 2.0 and 1.1 will still ...Show All
Windows Forms inserting cell values in DataGridView manually one at a time
Hi, I am new to vb.net programming and have the following question. I am getting data from database into 3 separate components. These components are basically getting populated from separate sql queries. I want the user to double click on one item per listbox, so that the item automatically populates respective cell of the datagridview. Question is how can I add datagridview on cell by cell basis ( given there is some default data such as "N\A" or "Fill in", in there. Or even without the default data) Could someone provide me with some sample code. Thanks, Raj ...Show All
Visual C++ Compiler error when using a constant member of a managed type
The following snippet of code produces a compiler error: ref class Test { public: void doSomething() // 'const' qualifier on member functions of managed types is not allowed { } static const Test^ CONST_MEMBER = gcnew Test(); }; int main(array<System::String ^> ^args) { Test::CONST_MEMBER->doSomething(); //error C2662 return 0; } The error is: "error C2662: 'Test::doSomething' : cannot convert 'this' pointer from 'const Test' to 'Test %'. What is wrong with the above code How can I invoke the method of the constant member See http:/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Debugging program that won't start
Whenever I try to start my program, I get a dialog box saying "The application failed to initialize properly (0xc0000022). Click on OK to terminate the application". With the debugger, it does the exact same thing, giving me no opportunity to find out what is going on; if I try to break it once the dialog box is up, I get another dialog "Unable to break execution. Please wait until the debuggee has finished loading, and try again" The only vaguely informative piece of information is a message in the debug window: "Debugger: An unhandled non-continuable exception was thrown during process load" ...Show All
Visual Studio My addin requires installation everytime
Hi All, I am creating VS2003 addin which uses my own other COM dll file. To create addin i have used visual studio 2003 addin wizard which also creates setup project for addin. But after just adding a simple menu under tools menu, and calling function from my COM dll. When I rebuild whole solution and install addin through installer it works fine for "just ones". When i close and reopen VS2003 IDE, my menu donot appear in Tools menu. I have to again install my addin to get it. Do I required any setting for this Similarly, I can't debug my Addin by putting break point in OnConnection function. I haven't changed any project setting. ...Show All
Windows Forms Text not showing up in Listbox
I am having problems populating a listbox and having the text show up. When I first encountered the problem, it was within a more complicated program. So, I began a new C# Windows application program, used the default "Form1" and drug a listbox on it. I renamed the listbox to lstCSAList to match the other program I was working on. In design time, I clicked on the ellipse, under Items where it says "(Collection)". I added, line1 line2 line3 In the Form1_Load subroutine, I placed the following code: private void Form1_Load( object sender, System.EventArgs e) { lstCSAList.Items.Add("Dummy&qu ...Show All
Visual Basic Please help with Process close and saving, also timer.sleep use
Hi, I want to be able to control a program through a vb.net window app (start, manipulate, close, and save) that has a form with a button to intiate it. As a first step I am experimenting with notepad to get the code down. I can easily create a window app that can start notepad, write a few sentences and then close notepad but focus is then immediately returned to my windows form and my subsequent sendkeys (tab & enter) that were meant for the save message box that comes up happens on my form instead. How can I shift focus back to the notepad's save message box (instead of my form) so that I can also save the file using sendkeys Here i ...Show All
Windows Forms Adding a row to a datatable with a identity key.
Hi, I have 2 fields in a datatable. One is an identity column, the other is a text column. I cannot add to the id col, and also I cannot add a row if there isnt one. -Edward On a designer (form/component class) drag and drop a DataAdapter, this will fire up a wizard. Follow the steps, also check out the Advanced button for ...Show All
.NET Development dbf index in vb2005
Hi all, I am new to VB2005 and need help. I have some data in dbf and I need to find some records in them. How do I set indexes for this files. Many thanks Regards Trivun Hi Trivun, Although there is more than one program that creates DBF files, I'll assume your DBFs are FoxPro DBFs. There are two types of indexes for FoxPro DBFs. One will have an IDX extension and the other will have a CDX extension. The IDX indexes are seldom used any more so I'll assume you have a CDX file with the same name as the table you want to access. The FoxPro data engine will automatically make use of any indexes that ar ...Show All
SQL Server ~* Total Pages mismatch *~
Hi, The number of pages in the report viewer and the number of pages in print preview are different. how could the prob. be resolved... Thanks in advance. Cheers Chakri. Understood. My work around for now is to have people export the report to a pdf if they need to locate specific pages or information on the report. What do you think of a last/first button and maybe a zoom feature being added in future versions of the control ...Show All
Visual Basic Irritiated - can you help?
Hi. I'm a newbie to VB2005 and I've 'built' the My Movie Collection database. I can now access this from the start/programs menu, but dont know where the system has installed it on my computer. Ive searched for 'MyMovieCollection' amongst other combinations but I cant find the .exe file. Where has VS2005 put my file Mat Hi, To see the installed location of your application, you can add some debug code in your Form_Load. Something like this should work: MsgBox(My.Application.Info.DirectoryPath) But to answer you question about why you aren't seeing your changes inside VS, it's because you are using a local SQL ...Show All
SQL Server Creating new connection manager types
Hi, Wanted to know how one can write new connection manager types, and, additionally, if there exist any code samples that show how this can be done. I searched through BOL but could not locate any. I basically work with C++ and was curiuos if code samples exist in it I have worked with a couple of ETL tools (or 'platforms' should I say) before, but never with SSIS. Would really appreciate it if someone could help me out here. We're working on providing some samples for custom connection managers. Writing them in native code isn't supported this release, but in managed it is. The pattern is the same ...Show All
Visual C++ BLOCK_TYPE_IS_VALID
Hi guys, I have a lib maked by VS6 and it's used by another application in C++ managed. Sometimes I got a BLOCK_TYPE_IS_VALID assert. Does anybody say me why Thank you You destroyed your heap. So a memory block is overwritten. I.e. you allocated 100 bytes but you copyied 101 bytes into it. You can use _heapchk to get close to the point were the error has its source. You can use _CrtSetDbgFlag with CRTDBG_CHECK and _ALWAYS_DF too. ...Show All
