hackinfool's Q&A profile
.NET Development Get Device Id through ActiveSync
Hi All, I would like to create an application that reside in desktop side, that is capable to get the device id from the PDA through ActiveSync. I have been able to retrieve the id through P/Invoke (KernelIoControl) if the process is executed inside the PDA. However, it has been a lot of difficulties once I try to do it through desktop. I read about RAPI, and found that there is an unmanaged call from ceutil.dll (CeGetDeviceId) that is capable to retrieve the id of the device. However, I'm not sure if the retrieved id is similar to the one that is through KernelIoControl. Besides, I found difficulty in terms of calling this funct ...Show All
SQL Server Problem with default schema
Hi I have a user database say Solumina. There is a login defined on the instance of sql 2005 server , say XYZ. There is also a user defined XYZ in the database mapped to the login 'XYZ' with the default schema as 'sfmfg' (Assume that 'sfmfg' schema already exists). My question when I try to create a random table with the following syntax it gets created in the dbo schema instead of the sfmfg schema (I am using sfmfg login credentials). create table t1(id int) Can some 1 please help out. Regards Imtiaz Is sfmfg a member of db_owner role It is always safer to use 2-part names in your obje ...Show All
Visual Studio Team System how to customize ProcessGuidance.html and be able to see it in team explorer
Dear all I am now able to customize the ProcessGuidance.html by opening ProcessGuidance.XML file from :- ...\MSF for Agile Software Development\Wss\Process Guidance\Source\XML and can see the effects for my editing in file ProcessGuidance.htm which in this path :- ...\MSF for Agile Software Development\Wss\Process Guidance\Source but my changes didn't apper from team explorer there is other file called ProcessGuidance.html in this path :- ...\MSF for Agile Software Development\Wss\Process Guidance which I think that this one is the one which avilable from the team explorer any help ... The XML files you ...Show All
.NET Development RDA and limited connectivity
Apologies for cross posting but I can't figure where to post. Please feel free to move my message elsewhere (notify mat<at>oldhallsoftware<.>com) cheers I have an ASP.net app that mobile service engineers use to exchange info with our back office systems thru GPRS. Works great but my company has a national phone contract and in some areas the connectivity just isn't up to scratch. I'm now researching a store and forward solution with Vis Studio 2005. Have read all the help stuff but have a few questions..... I'll be saving data entered by engineers to a SQL modile db and using RDA to send data back via existing stored ...Show All
Visual Studio VS 2003 C# Date Convertions Or Comparision
Hi. I've 2 dates. One in US format, the other one in European format. How do I convert a date to another format or how can I compare these 2 dates. DateTime.CompareTo doesn't work. Hello, I think this question would be most relevant on the .Net Development General forum: http://forums.microsoft.com/msdn/ShowForum.aspx ForumID=39 Thanks, Jeremy Jones ...Show All
Visual Studio 2008 (Pre-release) I keep getting this error, what is it saying...
Error at element '' in markup file 'Window1.xaml' : Exception has been thrown by the target of an invocation.. < Window x:Class = " proctester.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " qa " Height = " 300 " Width = " 300 " > < Window.Resources > < DataTemplate x:Key = " dtProc " > < TextBlock Text = " {Binding ProcedureName} " ></ TextBlock > </ DataTemplate > < Hierar ...Show All
Visual C++ Problem with VS6->VS2005
Hi need help... lots of help... 1] What the hell happened to stprintf function 1.a] How can i convert a char* to TCHAR* 1.b] why in nine hells does VS2005 say sprintf - undeclared identifier when stdio is included I tried looking for some reasonable answers, but god forsake me, i wasn't able to get from either MSDN library or anywhere else something useful... 2] VS2005 for some mysterious reason doesn't know anymore LVITEM, LVM_SETITEM, they are normally in commctrl.h, part of listview control,at least in VS6 it worked, but now... have they deprecated listview or what thx a lot for any help 1) For better confo ...Show All
Visual C++ std::map<,>, xtree and find
I am working on an unmannaged C++ application in Visual Studio 2003. The application is using STL map class. std::map<ApxString, CGPO> GPOs; GPODataFactory.GetGPOs( pContext, GPOs); std::map<ApxString, CGPO>::iterator GPODataIter = GPOs.find( GPOGroupKey) GPOGroupKey is of type ApxString of course and it was initialized to "T" earlier in the program. When I go through the debbuger in the GetGPOs function and use the find function, I find the row I am looking for. However, when I go through the find function after I exit the GetGPOs function, I don't find it. As I stepped into the find function, ...Show All
Windows Forms databinding
what is best method for databinding is it thru wizard(creating dataset and binding to controls ) or creating the class or config and use on each form. Use wizard for prodcutivity, cupled with typed dataset( custom collections), do code manually for more controls how the binding get done ...Show All
Visual Studio Tools for Office Publishing Error
When I publish a Word VSTO project I get the following errors (details below): Following failure messages were detected: + Exception reading manifest from file:///C:/Hold/Copy%20of%20SQLWord/SQLWord/bin/Debug/SQLWord.publish/SQLWord.application : the manifest may not be valid or the file could not be opened. + Deployment manifest is not semantically valid. + Application reference identity must be strongly named. I have tried publishing to a website and my local hard drive. Any ideas PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Co ...Show All
Visual C++ msvcr80d.dll not found
I've created a simple Win32 console application. When I try to debug it, I get the message: "This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix the problem." The Release version runs fine. Any idea as to what the problem could be Thanks, Jonny This means several things. a) your console application does not have manifest. Either embedded inside or external. To check this, do the following: `1. Check for <appname>.exe. manifest next to exe. If it is not there, it may be embedded. Go to step&nbs ...Show All
Visual Basic Debugging error - Operation Could not be completed
Hello, I am running on the VB8 and expirienced an error during debugging after some changes in "My project" area. I have noticed (on two different machine) that after change for example Startup Form or Security Area, I am not able to debug program any longer. An error appears, telling me that: The Operation Could not be completed. After clicking OK (nothing else is available) and next try of debugging, another error message appear: Visual Studio could not copy a support file to this location: "path". Please verify the path exists and is writeable. After that, I have to close Visual Basic and restart it. Tha ...Show All
.NET Development make production software with beta 2?
Do you think that vs and .net framework 2.0 will change too much from beta 2 to final release. Do you think that I should make production software with beta2 opr Should I wait still. Yes, I feel you can proceed. Thats the idea of a Go Live! License. Microsoft has claimed that there wont be too much changes after Beta 2 and hence issued the Go Live! License. Regards, Vikram ...Show All
Visual Studio Team System False Positive - DoNotCastUnnecessarily
I think I am getting a false positive here. Resolution : "'e', a parameter, is cast to type 'IntegrationPluginEngine.JobErrorEventArgs' multiple times in method Service1.HandleJobEvent(Object, JobEventArgs):Void. Cache the result of the 'as' operator or direct cast in order to eliminate the redundant public virtual void HandleJobEvent( object sender, JobEventArgs e) { if (e is JobErrorEventArgs) { LogError(e.Message, ((JobErrorEventArgs)e).Exception, ((Job)sender).ErrorEmail); } else { LogInfo(e.Message, ((Job)sender).InfoEmail); } } Hi ...Show All
.NET Development How do I detect if a Font is fixed pitch?
Is there a .NET way to determine if a Font object is fixed pitch or not I see there is a new PitchAndFamily enumeration as part of the TextMetrics object, but I don't see how to get the TextMetrics for a specific Font. thanks Mark I have tried this code, but cannot get it to work. The ifPitchAndFamily is always zero. You say "This will need unmanaged permission" what exactly does that mean I found this sample code in MSDN: /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Application. ...Show All
