haba's Q&A profile
Gadgets File paths
Maybe im missing something here but I have A gadget that needs to run an exe file that is included with the gadget. Every thing works fine when i use an absolute path i.e. "C:\\Program Files\\Windows Sidebar\\Gadgets\\WinampGadget.gadget\\winampexe\\winampcc.exe" however when i try to use a relitave path i.e. " \\winampexe\\winampcc.exe " I get a file not found kind of error. Heres the whole dir... WinampGadget.gadget\ Winamp Gadget.html gadget.xml winampexe\ winampcc.exe winampcc.ini images\ just a bunch of images.. Also this is how i am running the exe "System.Shell.execute("\\winampexe\\winampcc.exe", param);" BTW this happens in Vista RTM ...Show All
SQL Server sql server 2000 OPENXML to insert
Hi, Trying to use OpenXML to insert the xml data into table. As you can see in the sql code I am first trying to see if the select * works but nothing is returned. The idea is to eventually get this to do the insert into the table. can you please see what i am doing wrong Here is the xml sample. Next you will see the SQL Thanks declare @doc varchar (1000) declare @idoc int SET @doc = ' <marketData> <date>21-Feb-2007 11:26:39</date> <producedBy>Dominic Harris</producedBy> <isDifferential>True</isDifferential> <forwardCurves> <forwardCurve code="CU LME_FUT"> <maturities> <maturity> <contractMonth /> <date>30-Dec-1899</date ...Show All
.NET Development CM_Request_Device_Eject() is not firing any wparam .... in win XP
hello everybody.., I have used CM_Request_Device_Eject() method to eject my USB device... after executing this function it is able to eject the device successfully but is not firing the wparam.. which is DBT_DEVICEREMOVECOMPLETE... my code is as follows: to get the events: events(){ if ( DBT_DEVICEARRIVAL == wparam || DBT_DEVICEREMOVECOMPLETE == wparam ) { PDEV_BROADCAST_HDR pHdr = (PDEV_BROADCAST_HDR)lparam; if( pHdr->dbch_devicetype==DBT_DEVTYP_DEVICEINTERFACE ) { switch(wparam) { case DBT_DEVICEARRIVAL: OnDeviceConnected(wparam,lparam); break; case DBT_DEVICEREMOVECOMPLETE: OnDeviceDisconnected(wparam,lparam); break; default: } } } } and ejecting at: eject ...Show All
Visual Studio Unexpected error when load Installshield project to VSS with VS2005
I have a solution with a C# project, a dotfuscator project and an InstallShield 12 smart device project. When checking in the solution both C# project and dotfuscator got upload to VSS 6.0. But when at the installshield project VS2005 throw this error: --------------------- Unexpected error encountered. It is recommended that you restart the application as soon as possible. Error: Unspecified error File: vsee\pkgs\vssprovider\cmsscciabstractionlayer.cpp Line number: 4260 ---------------------- Any suggestion I get the same error except the project was working fine and the next day I tried to to a "Get latest version (recursive)" and go the same error. It also shows the same err ...Show All
Visual C# Problem while accessing directory.
I am trying to create a treeView of all directorys,subdirs and files, like an file explorer.(is there allready made ones ) I getting error: "Acces denied" while listing directory of C:\System Volume Information\ (edit:) How i can make this one work so it skips the unreadable directoryes/files Here is the code: private void Form1_Load(object sender, EventArgs e) { foreach (string dirs in Directory.GetDirectories(@"C:\")) { TreeNode node = new TreeNode(); & ...Show All
Visual Basic Issue about Printer.Print Command
Hi , First of all, I have “Microsoft Office Document Image Writer” is as the default printer in winxp. when I tried the following VB code, it opens the SaveAs dialog box to save it to the file Private Sub Form_Load() Dim lngError As Long Dim strError As String Dim temp As Variant On Error GoTo ERROR_Handler Printer.Print "Dh" Printer.Print "Mi" Printer.Print "Hi" Printer.EndDoc Exit Sub ERROR_Handler: lngError = Err.Number strError = Err.Description MsgBox (Str(lngError) + " " + strError) End Sub Now, if I click on save button it executes smoothly, but if I click on cancel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. . Tridex VB.NET XNA Update #11 Note on Textured Cube DeMO ......
Hi, solved the problem of the textured cube form help file not showing thexture and this is the secret mared in red!!!!!!!! wil upload update#12 in a mo for all the vb.net fellows, c# users can convert the simple lines marked in read to get it working!!!! '******************************************************************************** '*Lines of code below must be init to render textured object!!!! '*Was hard understanding , but the dice decleration must be stated!!!!! 'Works fine now '******************************************************************************** Dim VertexDecl As VertexDeclaration VertexDecl = New VertexDeclaration(graphics.GraphicsDevice, VertexPositionTexture.VertexEle ...Show All
Visual Studio 2008 (Pre-release) DLINQ: Please help
Hi, all I created a c# windows application to try out the DLINQ Im using LINQ May 2006 Preview with VS2005 and connect to Sql 2005. i use sqlmetal to generate the MySample.cs (my sample database) and Mappings.xml and my windows application compiled successfully. when i try to run it, i got a exception when excute below public MySample(string connection, System.Data.DLinq.MappingSource mappingSource) : base(connection, mappingSource) { } say "the type of 'SurfTrack' is not entity". SurfTrack is a table in my database and i can see the sqlmetal create the class SurfTrack in the MySample.cs as well as the mapping information in the Mappings.xml. anyone can tell me what is the problem. thanks a lot. ...Show All
Smart Device Development How to make Button control transparent?
Hello, Could anyone help me to make button control transparent Its for smart device form done in VS.NET 2003 (C#). I have also tried by creating a user control and adding the control to tool box, but its appearing in tool box in disabled state. Thanks Tijnars ...Show All
Visual Studio Team System how to install report designer?
hi, i followed this steps to start the report designer: http://msdn2.microsoft.com/en-us/library/ms160337.aspx but i did not find the Project Type , Business Intelligence Projects . it is not available in my list. so i think i have to install report designer first! how can i manage this task i have installed visual studio team edition for software developers. This is a little outside of my domain but according to http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=21600&SiteID=1 you may need to install the "Workstation Components" from the SQL Server 2005 disk on your machine. The SQL Server Reporting Services forum ( http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=82&Site ...Show All
Visual FoxPro print form
hi all, i have some Labels on form. i want to print entire form. help me regards m.a.khaleel Download George Tasker's obj2bmp class from www.universalthread.com ...Show All
SQL Server Verification origin
Hello, it wanted to know since I can do so that enla ejecucuion of the package is verified if the archives of origins of excel exist, in the case that do not exist not to execute their flow thanks Hello, I thank for your aid, but as the existence of the file could implement in script and as it would update the variable so that it takes the container from sequences. Greetings ...Show All
SharePoint Products and Technologies Script errors occuring in InfoPath workflow task form
I have written a workflow task form in InfoPath which contains business logic (code behind). My form contains several controls which are clickable, eg. Option buttons, and dropdown list box. When I click on any of the option buttons or make a selection on my dropdown list, I get a script error: 'null' is null or is not an object. The script errors do not prevent my form from working, but are quite annoying. These errors started when we switched over to MOSS RTM from B2TR. Is anyone else seeing this or know how to prevent this. ...Show All
Visual C++ delegate and function pointer over head
I was just wondering if any one could tell me the cpu overhead of calling a delegate in CLI, and calling a function pointer in native, I would appreciate any help Hello Unfortunately, the short answer would be “no”; far too many variations to give you a definitive answer on such a general question. This is a case where you need to implement and measure to get specific details for a certain scenario, sorry. Thanks Damien ...Show All
Windows Forms Help Required to access the values of the data table
Hello, I want to display the values of the datatable into a DataGridView. Can you pls help me to write a code which access each row of the table or each column of the table and their values...pls reply ASAP waiting for your reply.... Thx a lot in Advance... -sweety If you just want to access each row or each column of the table and their values,use the foreach clause,as: foreach ( DataRow dr in tableA.Rows) { //some code } foreach ( DataColumn col in tableA.Columns) { //some code } and,if you want to display content in the datatable to DataGridView,just set the DataSource property of the DataGridView this .dataGridView1.DataSource = tableA; ...Show All
