nick5454's Q&A profile
Visual C++ arrays
i have an array that i have debuged to make sure it contains stuff. when i access it like arr[1]; it is fine. but is i try int pos = 1; arr[pos]; i get an exeption at runtime of "System.IndexOutOfRangeException" the array is highlited. what can i do ok, you didn't specify the language you were developing in so im now moving this thread to the correct forum (hopefully) but apologies to the rest if it is placed in the incorrect forum ...Show All
Smart Device Development platform builders cesvch~1.exe uses 100% cpu when idling
Hello, I have a question concerning the process cesvchost.exe (cesvch~1.exe in the tasklist) which platform builder creates on startup. The problem is that, after platform builder started this process eats up 100% cpu time. Even when I'm doing nothing... Opening a workspace is just not done, because the pc is very slow. Everything seems to go back to normal when I terminate this process. But then, when I goto pb->menu->target->connectivity options, it returns and uses 100% cpu again. When at that moment I terminate the process again, I'm unable to attach my CE device, so I cant send the nk.bin to it, debug, etc. I've got a fresh platform builder for windows ce 5 install, and i've installed all the pb updates from 2005 and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectInput what is the deal with this?
I have been trying to get my program to accept input from the keyboard. After switching my compiler and my resources to the current microsoft offered stuff (Visual C++ express edition, Directx 9x SDK, and documentation for both).I keep running accross problems with implementing DirectInput as my component for keyboard interface. Should I keep trying to use DirectInput If so can anyone answer what I am doing wrong then here. HRESULT hr; LPDIRECTINPUT8 myput; LPDIRECTINPUTDEVICE8 ruendc; void dxsetup() { hr = DirectInput8Create(blog, DIRECTINPUT_VERSION, IID_IDirectInput8, ( void **)&myput, NULL); } My error message says this: Linking... Main.obj : error LNK2019: unresolved external symbol _IID_ ...Show All
Visual Basic strategy to get around slow application startup...
as long as I dropped controls onto the form designer, the application starts up pronto. Imperceptible flicker/painting as the form loads up with tab controls, toolstrips, text boxes, etc. InitializeComponent within Mainform.designer.vb works. The problem is when I add usercontrols in Form_Load. The startup performance degrades noticeably and precipitously with a dozen controls. OK, I am not in Oz or statically linked exe's anymore...the code compiles on the fly. As an experiment I thought I would move the ResumeLayouts/ PerformLayout to the end of the form_load instead of at the end of InitializeComponent. That helped somewhat but it threw into a tizzy some SplitterContainer splitterdistance preperty settings. It's getting comp ...Show All
Visual C# bool and objects
I have an collection of objects(arraylist)...in my list is want to check to see if properties within my arraylist have changed by using a _IsDirty flag...but i get an error saying cannot convert object to bool can anyone help me out here [code languge="C#"] for ( int x = 0; x < ArrayList.Count; x++) { if (Convert.ToBoolean(Arraylist[x]) == this ._IsDirty) { } [/code] how should this be A better solution is to create your own class inheriting from some structure and put a property IsDirty out there and you change its value whenever items in collection are added, removed or modified. You dont need to put dirty byte itself in Array. I hope this will help in choosing a right direction of do ...Show All
Smart Device Development Error C2504: 'CCeSocket' : base class undefined
I am attempting to port a Smart Device project from a previous version of Visual Studio into a Windows Mobile 5.0 project for PocketPC in Visual Studio 2005. I am getting the error mentioned in the subject where I have a class inheriting from CCeSocket. Has anyone else had this problem or know of a way to fix it This is code that worked just fine in its previous environment. HI, The CCeSocket class has been deprecated in VS 2005 for devices. You should use the CSocket and CAsyncSocket classes for network related functionality. But for a few Wininet flags that aren't supported on devices the programing experience should be the same as that on desktop. Hope this helps. Thanks ...Show All
.NET Development SerialPort When_Buffer_Is_Empty handler
Greetings everyone. In my program i use serialPort.DataReceived handler: serialPort1.DataReceived += SerialPortDataReceivedEventHandler; its start my method, when any data appear on serialport. Inside it i use next code: private void SerialPortDataReceivedEventHandler( Object sender, SerialDataReceivedEventArgs e) { int q = 0; array = new ArrayList (); byte [] buf = new byte [1]; char ch; if ( SerialData .Chars == e.EventType) { while (serialPort1.BytesToRead > 0) { ch = Convert .ToChar(serialPort1.ReadChar()); slovo.Append(ch); if ( (ch.ToString().Contains( "\n" )) || (ch.ToString().Contains( "\r" )) ) { using ( Strea ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Effect.FromFile IndexOutOfRange exception
Hi all, I am trying to load a shader using this code: private Effect LoadShader(string filename, List<string > defines) { Effect effect = null ; if (File .Exists(filename)) { Macro[] macro = new Macro [defines.Count / 2]; for (int i = 0; i < defines.Count; i += 2) { macro[i / 2].Name = defines ; macro[i / 2].Definition = defines[i + 1]; } effect = Effect.FromFile(m_Device, Config.ShaderFilename, macro, null, null, ShaderFlags.None, null ); } return effect; } At line effect = Effect.FromFile(m_Device, Config.ShaderFilename, macro, null, null, ShaderFlags.None, null ); the app throws IndexOutOfRangeException. All parameters are valid and I think i ...Show All
Visual Studio Team System VS Crash on Check-In
When I try to check-in a file that I have previously checked-out I get an APPCRASH in devenv.exe. I'm running VS 2005 SP1 with the Vista hotfix. I have read a couple different posts related to F-Protect, Visual Studio 2005 and Team Explorer causing a crash. This was very similar to my problem, except I see no reference to ntdll.dll as the FaultModule. Instead the FaultModule is StackHash_9eb0. I don't have real-time virus protection running, so I do not believe this is the issue. Does anyone have any ideas I'd rather not uninstall / re-install...it takes forever. Apologies. No idea what might be causing this. I think your best bet is to call MS product support and see if they have anything in th ...Show All
Visual C# Accessing embedded resources
I am currently working on a C# application that uses an axWebBrowser control to displays HTML pages. This is being done to reuse an existing web application which resides on a client’s computer. To hide the html on the client’s computer, I have created a resource .dll linking in all of the HTML, images and JavaScript pages from the old project. Using the res://mydll/homepage.htm, the home page loads into the web browser control (axWebBrowser.Navigate), no problems. This page has frameset, so when I try to access the document frames, I get an exception Access Denied. I am using code similar to this to access the frames: HTMLDocument myDoc = new HTMLDocumentClass(); myDoc = (HTMLDocument) axWebBrowser1.Document; Fr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Pong using XNA
I've noticed a few XNA Pong varients already populating the Internet since XNA's release on Wednesday. This version, called MDS Pong, will attempt to simulate the original game as much as possible (by original, I'm referring to the small black box that pre-dates Atari. Yes, there was something before Atari). You can check it out here: MDS Pong Beta Some of the game logic includes changing the ball angle depending on where it collides with the paddle, and changing the ball's speed based on how fast your paddle is moving upon impact with the ball (like the original game). The plan is to complete the project and release the documented source code so everyone here can see some features of Game Studio Express in action. The computer is ...Show All
Software Development for Windows Vista How to obtain information about dimensionand of DIB
Hi It is posible to obtain information obout dimension DIB fom video stream in h.264 format I try to write soure filter which obtain video stream h.264 from web and deliver it to ffdshow mpeg4 video decoder. my_source_filter->ffdshow video decoder->render filter how to get informtion about DIB in that situation I think that AM_MEDIA_TYPE in source filter must by configurated by me Tomys ...Show All
.NET Development Assignment and declaration using CodeDom
I have a class delcaration using CodeDom CodeTypeDeclaration newClass = new CodeTypeDeclaration (name); I would like to add the following statement to this class private const string APPLICATION_NAME = "ApplicationName" I have tried CodeTypeDeclaration and it seems to want to create a class. I have also tried CodeVariableDeclarationStatement but newClass.Members.Add does not like that type. Any ideas on how I can add this statement to the class Thank you. Kevin ...Show All
SQL Server Datetime format regardless regional settings
Hi, in tsql there is a common format for datetime (regardless regional settings) I use : 'mm/dd/yyyy' to access cols in database, but someone says that the right one is: yyyy-mm-dd. Any suggestion about that Thank a lot hmm..works fine with me...the lowest date in northwind is..1996-07-04 00:00:00.000.. i get 0 rows for all the queries u mentiones...and 1 each when i use <= .. neways...wat do u want to achieve exactally....see 112 is the ansi date format, which shud be used for date conversion and comparisons as its the standard....select convert(varchar(10), getdate(), 112) ... yyyy-mm-dd +time is how sql server present it as.. ...Show All
Smart Device Development HP pda how do i install apps
hey guys (girls) how do ii install a app that i have created in visual studio vb.net i am using btw also 2005 visual studio as my ide You'd need to create installer for it. See this . ...Show All
