Prashant jain's Q&A profile
.NET Development Monitoring and changing varibles in a process
I was wondering how to get a value form a running process, lets say MySimpleProcess.exe that is running in memory. If i made a integer that was value of 15 and lets say I click the button and it drops to 10 then 5 then 0. I am trying to make a program that tracks an address in memory and its value. lets say address is B74EC4 value is 15 (4 bytes) Click B74EC4 is now 10 etc.. You can probably get away with just calling kernel32!ReadProcessMemory. (See the pinvoke definition above for how to call it from managed code) Instead of data-breakpoints (which are hard to implement on your own), ...Show All
.NET Development Quick SQL question
I am trying to build manually the UPDATE, INSERT and DELETE strings of my OdbcDataAdapter because the ones generated by the OdbcCommandBuilder are not going to be adequate. I will still be starting from the generated strings and build on them. To understand better what they do, I need to interpret a specific SQL predicate, and I am having trouble with an expression within. The following SQL command is supposed to ensure that a row in a table is deleted only if the data hasn't been changed (in OBDC style, parameters are designated by question marks): DELETE FROM MyTable WHERE ( (ColumnIndex = ) AND ( ( =1 AND TextColumn IS NULL) OR (TextColum ...Show All
Smart Device Development Establishing a Direct Database Connection
Can I establish a direct database connection with .NET CF Is this possible with Pocket PC/.NET CF For example is there a System.Data.OracleClient that supports .NET CF Thanks again, Jeff. Yes, it's possible to establish direct connection to SQL Server 2000 and SQL Sever Mobile (CE), support for that is included into VS. Other DB providers are available from 3rd parties. For example, Oracle DB provider can be found here: http://crlab.com/oranet/ ...Show All
Visual C++ implementaion of unwinding
I have troubles finding information on this subject, so I'll try to ask here: What kind of unwinding mechanism implementation is used by VC8.0 Is it the same old and slow 'update structure on the stack while we go' (like it was up to VC7.1) Or MS finally decides to go after GCC & others by separating successfull execution path on compile stage (which is significantly more efficient) Bye. Sincerely yours, Michael. (1)(a) " __try/__catch instead of range checks " -- just as before: I hope you know what you are doing. Invalid data usage results not only in AV or DIV -- it could also results in memory ...Show All
Visual Studio AssemblyInfo task
I am trying to use the AssemblyInfo task in my team build, from this blog: http://blogs.msdn.com/msbuild/archive/2005/11/11/491947.aspx A few questions: - rather than editing each .vb/.csproj file, is there a way to set assemblyinfo details across all assemblies in a team build - what about web apps that dont have an assemblyinfo file - is there an easy way to use the $(BuildNumber) property in Team Build as the assembly version numbers I ask because I have different branches in source control for each testing environment we have (dev, test, stage, live). I have a build type on each branch and the build from each never makes i ...Show All
.NET Development XML Trace WSE 2.0 problem
Hi, I've recently had frustration experience using a certain web service provided by a known organization. In order to maybe get a response from the technical they want me to send them the XML trace for the input and output calls and answers to the web service. I've downloaded WSE 2.0 tool since i use .net vs 2003, c#. I've desperately been trying to get a trace with no success. Here are the details of what I've been trying: 1. Installed WSE 2.0 sp 3 2. Removed and added again the web reference to the web service 3. ...Show All
.NET Development ComboBoxes and DataBinding
Okay, so I need to build a database program that will only allow certain strings to be posted to the database, so I decide to use comboboxes, easy, right ... NOT! I set the data source property and the databinding properties and now it won't let me fill the Items property. Is there any way around this or am I WAY off in using a combobox Thanks. Ealdormere. Oh and given that it appears that you want to send new strings to the data source then when using BindingSource you can call the Add method to add new items to the data source and the control will be automatically updated. Prior to 2.0 you'l ...Show All
Visual C++ 1780 null reference pointer was passed to server - is there really anyway to get rid of this????
hi, I am now working in a project which has the following environment. OS : windows 2000 server Platform : .net 1.1 language : vc++.net currently this project is in vc++ 6.0 (rpc server) and a vb 6.0 (rpc client) app will communicate to this thru rpc calls. now i have successfully (of course after having MANY number of errors) compiled it into VC++.NET. for some reasons, the vb 6.0 app will remain as it is. my problem is , i cannot make vb 6.0 app to communicate vc++.net application IN ALL OF MY MACHINES . in one machine, i can run the project successfully. but when i copy all them , register all components into anoth ...Show All
Visual Basic REALLY Weird "Threading Problem" - Hard to explain
Hello all. I''m currently in the [process of making an audio player application that will read out MP3 tag information using the Speech library (the MS Text-To-Speech thing - like the one in control panel.) Well, I had built the application using the VB .NET 2005 Betas, and it worked fine throughout - no problems. I downloaded the final version of both the framework and VB IDE itself. I compiled & ran, and got some strange error that I had never gotten before. Below is the result of what the IDE could tell me. ContextSwitchDeadlock was detected Message: The CLR has been unable to transition from COM context 0x1af778 to COM c ...Show All
Visual Studio Registering Visual Studio.net 2003
I just installed VS2003 Academic Version and when I clicked on the link to register my software I got the following message on the MS web site: We're Sorry...The page you are looking for no longer exists or may have been moved. I can't seem to find a registration page on the web site. Anyone know where it is Surely one must still be able to register this version since it's still being sold! Sacblonde I am having the same problem and can't seem to find any information on the topic. If you happen to get an answer or can direct me in the right direction I would appriciate it. ...Show All
SQL Server 2005 CTP Connection error
When I try to connect to the 2005 CTP SQL server in any of the VBexpress software packages I get the gfollowing error user instance login flag not supported in this version of SQL I am not sure what to check or what I may have missed in the SQL server setup I had the same problem and it was solved choosing the appropriate MDF file to the field "AttachDBFileNAme" and inserting the logical name of DB (the name that appears on SQL Server Man. Studio) in the field "InitialCatalog". No other configurations were needed on SQL Server ...Show All
SQL Server another simple question, please help, thx a lot!
I have some issues for remotely connection a sqlexpress server 2005 with a c# desktop app, in my local network, after I set a port forwarding service for the computer which runs sqlexpress server, I want my c# app connect to the sqlexpress server in another machine under same local network, the connection string is: "server= 62.31.81.210.\SQLEXPRESS,1921; Database='EvoHealthSQLex'; Integrated Security=True" however, that one only work in the sqlexpress server machine, if I try to use it in another machine, i got error 'Login failed for user 'BRISTOL-1\Guest', BRISTOL-1 is the full computer name of sqlexpress server machine, I found ...Show All
Visual C# Covert String or Object to Hex
Hello Everyone, I have something like this .... object var = property.Value; I want to change var to hex, how can I do it.... In C or C++ we use to do something printf("%x, var)....does the trick.... I'm sure will be really simple, I'm not doing something correct..... Thanks, Harsimrat In C#, it's string.Format, and items to format are specified as {0}, {1}, etc. There are also format specifiers, including ones for hex. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconformattingtypes.asp ...Show All
Windows Forms Document Outline
In Whidbey - there's a great new feature called Document Outline. This can help greatly when laying out a form: http://www.windowsforms.net/WhidbeyFeatures/default.aspx PageID=2&ItemID=5&Cat=Designer&tabindex=4 To get there, View->Other Windows->Document Outline Hi Jessica, I was (re)arranging my IDE today and opened the Document Outline window, which was, of course, empty. Thanks fo ...Show All
Smart Device Development infrared!
Hi. I want to be able to send data (hex codes or whatever) using the infrared ports. I have imported the System.Net.Irda reference and able to access the IR classes. However, I do not wish to connect to a device but rather send data. The device I am sending data to will be a dumb device really, just as a "reciever"... this can be a remote control recieving box or a TV IR reciever for example. IS it possible to do this how I cannot seem to find a way in the .NET classes as it seems you have to connect to the destination then write data to the stream. Thanks! You will not be able to communicate with a TV IR receiver through your standard ...Show All
