Codeme's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Any other way to buy an XNA subscription?
For some reason or another my Xbox isn't accepting my credit card info (I think it may be due to the form not having an "Address line 2" field and I live in an apartment, I've checked and doublehecked all the info and the account has an ample amount of money in it), so is there any other way for me to get an XNA Creators Club subscription I tried looking to see if I could add my credit card info via Windows Live, but that didn't work out. About 60% of the reason I got this thing is because I could write programs for it, if anyone knows how to help me out I'd really appreciate it. Thanks, Johnny I'm not 100% sure but you may be able to add a credit card by going to http://billing.microsoft.com I ...Show All
Visual Studio Express Editions OutOfMemory Exception Error
I'm working on a rather complicated program using signature tablets. Someone signs the tablet, displaying their signature on screen. That signature is then broken down into a unicode byte string to be saved into a database. So far, so good. When I open a second form, designed to display entries from the database, it gets as far as the code below and give me an error message saying 'OutOfMemory Exception is unhandled'. This is the code designed to retrieve the unicode string from the database and turn it back into a signature. Dim ImgData As String ImgData = RegisterdbDataSet.Time_In_Table.NewTime_In_TableRow.Signature_Data() Dim bytes As Byte () = System.Text.Encoding.Unicode.GetBytes(ImgData) FileOpen(1, Envir ...Show All
Visual Basic Unable to cast COM object of type 'X.YClass' to interface type 'X._Y'.
Dear all, I'm getting this nasty error and I cannot find any answers (google didn't help either). Here's the thing: I'm calling a VB6 DLL from a VB.NET (VB2005) application. This is the error I get when I call the DLL: Unable to cast COM object of type 'X.YClass' to interface type 'X._Y'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{780BDA61-8169-4A5D-AD31-59A902BC3B84}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Strange thing is, sometimes my code works properly, and the next hour I get this error. I rebuild the DLL, unregistered and re-registered the DLL, swept through the internet and the ...Show All
Windows Live Developer Forums messenger and IE not working together
When I try to click on something like mail, or view profile, internet explorer does not open these pages. nothing happens. any ideas IE is set to be the default browser. ...Show All
Visual Basic MsgBox always return "no" regardless of what the user click
I am using VS2005 and have a messagebox inside of an event that does not work properly. The code is below: If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If The problem is regardless of whether the user clicks Yes or No, it always returns No. If I add another MsgBox in the code immediately before the if statement, then the if statement will always work properly. (see code below) Microsoft.VisualBasic.MsgBox( "Dummy MsgBox" ) If Microsoft.VisualBasic.MsgBox( "Do you want to save your changes" , MsgBoxStyle.YesNo) = MsgBoxResult.No Then Exit Sub End If I can't figure out what is wrong h ...Show All
.NET Development BiDi32.dll...
On VB6 I used this function BiDiConvertOemToAnsi to transfer from "DOS hebrew" into "Windows Hebrew" I tried working with the function and dll on .NET but got this message: A call to PInvoke function 'Test1!Test1.Form1::BiDiConvertOemToAnsi' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. Can someone help me work this out Hmm, there's nothing special about those characters. Unless they are the special quotes that, for example, Word generates when the "smart quotes" option is turned on. Then the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What about PRT lighting? I didn't find out PrtEngine =(
AFAIK Mdx included PrtEngine, it was great. It is to be regretted that PrtEngine hasn't been included in the Xna beta. I would like to see it in the next version.. Ok, go to https://connect.microsoft.com/feedback/ViewFeedback.aspx FeedbackID=226160&SiteID=226 and vote, please. Alternative: go to https://connect.microsoft.com/feedback/default.aspx SiteID=226 and find the suggestion using "PrtEngine" keyword.. ...Show All
Visual Studio Express Editions are methods called asynchronously in the same thread better than those called in another thread?
i was just wondering since calling methods asynchronously in the same thread acts just like calling the method on another thread. so which is better or preferred by you programmers out there are methods called asynchronously in the same thread better than those called in another thread SJWhiteley Are there any good descriptions of how the multithreading of VB.NET actually work Of course I have tried the help files, but they do not give the required overview. At first I tried to write from one task to another, but of course got the "Illegal cross thread call" error message. I then found an application, which used BeginInvoke to display data received from a serial port. It works fine, but for a long time I could not fi ...Show All
Windows Forms Treeview adding nodes problem in Framework 2
I have a user component called 'SiteJobs' which housed in my main application windows form. It basically consists of Treeview as main display object, and accept a string object which corresponding to job campaign. It has public method called 'AddJob' , as code below public void AddJob ( string campaign ) { if ( campaign == "" ) return ; TreeNode newNode = new TreeNode ( campaign ); newNode . Name = campaign ; tvJobs.Nodes.Add(newNode); lblCurrentJob . Text = "Job: " + campaign ; int index = tvJobs . Nodes . IndexOfKey ( campaign ); if ( index !=- 1 ) tvJobs . SelectedNode = tvJobs . Nodes [ index ]; if ( OnNewJobIsEntered != null ) On ...Show All
Visual Basic VB6 get function in VB.net
Instead of using the get function in VB6, what would i use in VB.NET Thank you for your time, i have found what i needed to do: FileOpen(1, (filename), OpenMode.Binary) For i = 1 To (integer) FileGet(1, (array)(i)) Next i FileClose(1) Sorry about that, i will tell you what i'm trying to do now that i understand what i'm doing (don't ask). I want to open a file (not a .txt file) in binary mode, I then using a for function (or method dont no, who cares lol, just a function to me) want to read or wright (what ever "get" method means) in that file that i opened. Is this one way of doing it Dim fs As FileStream = New FileStream(t ...Show All
.NET Development adding an xml and a datatable.
Hello, I have a problem with dataset. I read an xml file to the dataset.after that, i need to add the data in a datatable to the dataset and write the dataset to the xml file.I mean DataSet ds = new DataSet(); ds.ReadXml(filename); DataTable dt = new DataTable(); //...filling the datatable ds.Merge(dt); By this way,it does not do what i need.when i look at the xml file,i see only the last datatable's data in the file.it doesn't add,it just replaces with the new one. What's wrong with me Thanks in advance. ...Show All
Visual Studio Quickest way to Download all folders and files after initial connection to ini - VSS 2005
Just installed VSS 2005. I connected to our DB ini. What's the quickest way to create all the folders in my wwwroot that exist in our VSS datbase Do I have to do this manually as I have been doing by going into VSS, and setting the working folder and creating the folders from there Or, can I just go to our server, copy the entire structure down, then go back into source safe and set each working folder I just want to know if it is safe to copy down from a mapped drive or something, all the folders manually or do I need to go through VSS. If through VSS what's the fastest way...it's been a while, and not sure if in v2005 there are any new tools to do so. >>>>Set a working folder for the root that contains all of your ...Show All
Windows Forms Access list of files in MSI in custom action
Hi All, I have created a VS deployment project to copy “my.dll” file in a particular folder. Initially we were copying this dll on target machine manually. But if I build my.dll with some changes into it and try to copy by using installer (created by VS deployment), then my.dll file won't get overwritten. This is because both dll has same version. If the dll from my installer has version greater than already existing dll file then the old file get overwritten. I got some similar links: http://groups.google.co.in/group/microsoft.public.platformsdk.msi/browse_thread/thread/390b379c234a675c/713da5248c51a888 http://groups.google.co.in/group/microsoft.public.platformsdk.msi/browse_thread/thread/4839c934fe7e6ff6/3def ...Show All
SQL Server SSIS Checkpoints
I have a package that uses ssis checkpoints. It works well. However, when I try to setup transactions for some task, the chekpoints aren't used. I read BOL and It states: "If a package is configured to use checkpoints, Integration Services captures the restart point in the checkpoint file. The type of container that fails and the implementation of features such as transactions affect the restart point that is recorded in the checkpoint file ." But, how checkpoints are affected by transactions what relation exists between this two components Hernan93 wrote: Ok, thank you. But when you have a list of task, one after another, and each task has transaction required and the package is ...Show All
Visual C# "OUT of Memory" String construtor
Hi, im getting a "out of memory" exception when I try to pass a large char array in the the string construtor. The array has a length of about 200MB, its XML Data. I need to convert this to a string for the further handling. For smaller data stuff works fine. Any ideas how to convert the data to a string Thanks Dob I agree that you should use streaming. But keep in mind that if you use the XmlDocument class, you will still lay a heavy burden upon the memory because de class will load the entire document at once. If possible try using a XmlReader class because this uses real streaming. ...Show All
