Unmesh Gundecha's Q&A profile
Visual C++ .NET Form App + Link Errors
I have a .NET Forms Application and I am getting link errors. I am linking to some static librarys that work fine when linked to with Win32 apps. I have commented out the majority of the code an I am down to these errors . LINK : error LNK2020: unresolved token (0A000011) atlTraceException LINK : error LNK2020: unresolved token (0A000012) s_trace@CTrace@ATL@@2V12@A Can anyone advise on how to eliminate these Thanks, Michael Hang on, I'm a nerd too. You need to link to atlsd.lib to pick up these symbols. You may run into problems with the loader lock issue (ding when you start up) if you're using legacy ATL classes... ...Show All
Visual Studio Express Editions Whats the code for Shutting down logging off and othe similer functions
Whats the code for Shutting down logging off and othe similer functions Here's the API declaration , should work in Windows 98/ME too... ...Show All
.NET Development Using UpdatedRowSource with a Transaction
Hi all, I my current project, I have the following situation. We have a SQL Server 2000 database where some of the tables have primary key field that is set as an Idenity columns (i.e generates it's own keys) On the client application we use and ADO.Net dataset to retrieve and store data. Whenever rows are added to one of those tables, a pseudo key is created on int the client Data and we use the UpdatedRowSource to retrieve the actual value when the data is inserted in the database. The tables are most of the time part of a multitable dataset, so the updates are done in the correct order (delete childrows, delete parent rows, update & insert parent rows, update and insert childrows) to avoid referential integrity problems. These ...Show All
Visual C++ How do you use breakpoints in Visual C debugger when running a C++ DLL with a VB executable file as the calling program?
I meant to ask, how do you use breakpoints when you are running the debugger in Visual C to run a dll in conjuction with an executable file as the calling program The breakpoints aren't retained after I start the debugger. I haven't as of yet found anything in the Help information about it. I have been copying an executable file of the VB calling program into the directory that the dll cpp file is in, then going into the open window and double clicking on the executable file of the vb calling program, then selecting "start debug" from the pulldown menu in VC. The breakpoints were set before all this. It gives me a message saying that the breakpoints were not retained. With the DLL as the active projec ...Show All
Visual Basic Turning Beep sound off after enter text in the text box
Below is code Private Sub txtAnHuman_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then KeyAscii = 0 lblEng.Caption = SPI(txtAnHuman.Text) End If End Sub multiline = False. This is the way I have intented I have lots of text box in my application. Need a simpler answer I tried Private Sub txtComm_KeyPress(ByVal sender As Object, _ ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtComm.KeyPress If e.KeyChar = vbCr Then e.Handled = True End If End Sub I got a compile error ...Show All
Visual Studio Express Editions Locking Mouse
Hi ive been looking for days to find the code that will lock "Block" the mouse move event from being processed... So far i've tried the code: actHook= new UserActivityHook (); actHook.OnMouseActivity+= new MouseEventHandler (MouseMoved); public void MouseMoved( object sender, MouseEventArgs e) { Cursor .Position = Ace; } where Ace is the point that the mouse was at last. This doesn't work unfortunatly as i can still move the mouse around... That event is hooked with a class called UserActivityHook (declared as actHook) (not my class) UserActivityHook public event MouseEventHandler OnMouseActivity; I'm thinking that Cursor .Position is only repainting the cursor and while the mouse ...Show All
Visual Studio 2008 (Pre-release) Asynchronous calls and ChannelFactory.CreateChannel
Has anyone an example of how to implement an asynchronous call when I’ve used CreateChannnel from the ChannelFactory. I had a look around but there doesn’t seem to be any info on it. I don’t what to use svcutil because the return types for my generic collection are returned as a dataset. I’ve tried using /ct flag and it doesn’t seem to work for my collection (it’s from llblgen) . When I use CreateChannel and call the methods synchronously I can cast the return values to my collections with no problem. am I missing something Cheers Johnny Here is a nice blog that might help you to build Asych calls. http://blogs.msdn.com/mjm/archive/2005/05/04/414793.aspx ...Show All
Visual C++ error C3867:...need help
Hi all, I am now trying to run a discrete event simulation using MSVC++2005, After built it shows the following error:.... portion of the header file is: #ifndef _DESL_H_V003_INCLUDED_ #define _DESL_H_V003_INCLUDED_ #include <crtdbg.h> // needed for _ASSERT() macro #include "avltree.h" #include "_stack.h" #include "_list.h" ///////////////////////////////////////////////////////////////////////// // CLASS: template < class TIME_T, class DATA_T > // class DESL_environment // // PURPOSE: use as 'parameterized namespace' ///////////////////////////////////////////////////////////////////////// #define DESL_QUALIFIER DESL_environment< ...Show All
SQL Server Design Question (Analysis Services or Integration Services)
Hi, I have a design issue and not sure, which approach to follow. Iam not sure, if I have to use analysis services or integration services. But we would like to use price trending also, so probably analysis services could be an option. We have a table which stores the Customer Items information. For making it easier, I will talk about customer 1 and item 1as shown in the table below: CustomerID CustomerCategoryID RegionId ItemID Price 1 1 2 1 10.00 2 1 2 1 12.00 3 1 2 1 14.00 4 2 1 1 18.00 5 2 1 1 ...Show All
.NET Development ASP pages that try to access sql 2005 render 404 error
I installed sql 2005 and any .asp pages with a sql connection give me a 404 error. (see www.tranquilblue.com/contact.asp - click submit) on the server there's no problem seeing the page. anyone point me in the right direction for some help j ...Show All
Visual Studio Express Editions executable program(publish) and database problem?
hi there!!! here's my problem regarding my published program... when i install my program to another computer. my program did not recognize the database/ cant find the database. i need to copy my database(where i programmed and publish(computer 1) and paste it (where i install the program (computer 2)) The database must be attached to the server. This can be accomplished programmtatically via System.Data.SqlClient.SqlConnectionStringBuilder.AttachDBFilename() http://msdn2.microsoft.com/en-us/library/system.data.sqlclient.sqlconnectionstringbuilder.attachdbfilename.aspx However be aware that you are also likely to have deal with Authentication in the Systen.Management Namespace. ...Show All
Smart Device Development Device Emulator and XPe
I have built Windows XP Embedded and everything is fine, but when I start Device Emulator and try to load saved-state file, I only see the message: "Couldn't read the saved state file". But when I do coldboot and then I try to save it, I see the message "Couldn't save the saved state file". I don't know where is the error, because in Win XP pro it is working normally. I think that I forgot to add some components in target designer. Thank for reply, but all these dlls are in system32 folder. Can you tell me which files depends on these dlls. Sorry for this stupid questions but I'm begginer. ...Show All
Visual Studio Team System Another schema compare problem
I am facing a strange problem with schema comparison. Here is what i am doing. I have Imported schema to my db project. After I imported the schema objects, the database got a lot of changes. I wanted to run a schema compare again and identify the changes done after I imported the schema objects. When I run the schema compare, to my surprise, the comparison results shows certain tables and stored procedures with a "create" action, even though those objects exist in my db project. I could see those files in the solution explorer. But the schema comparison results still show them with a "create" action, indicating that i need to create them. I clicked button to "write" changes to my project. After i ref ...Show All
.NET Development Is it possible to enumerate a USB device ......
hello.., I am doing a USB project in windows XP, in which i need to eject the any USB mass storage device which is plugged-in , for this i am using CM_Request_Device_Eject(). And it is working well. But when more than one device is plugged-in to the system, sometimes, there are cases that more than one device is getting the same deviceInstance, basing on which i am ejecting the device. Due to this the CM_Request_Device_Eject() is either ejecting the recently plugged-in device or ejecting the already ejected device by returning S_OK. To avoid this mismatch of the DeviceInstances, i want to enumerate the plugged-in devices for every minute. But when i do this, GetLastError() is returning NO_MORE_ITEMS. So, my doubt is.. Is this possible to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA has it's own GamePad DeadZone?
I've been looking at the output of the thumbsticks, and it appears a value less than 24% (0.24) is ever returned. I know it's very important to implement deadzone in your programs, but why has it been done for us Someone may want to write a game that needs a smaller deadzone, but as far as I can tell it would be impossible given we don't have full access to the output right the way from 0 to 1. Is this behaviour intentional Many thanks, Adam Miles Mitch Walker - MSFT wrote: There is a bug that we should be returning values 0.0...1.0 rather than 0.24...1.0 after we calculate the deadzone. I'm wondering why you think you need to calculate the deadzone yourself Inside the deadzone, the values you get ...Show All
