XLNT's Q&A profile
.NET Development MSXML JumpStart fails under VS2005 (Error C2664)
I just downloaded a fresh shiny copy of " JumpStart for Creating a SAX2 Application with C++ " from the MS XML Developer Center. I'm a little surprized to see it doesn't even compile under VS2005, but I'm happy to massage it to get it to work. The issue I could use some input from the forum comes from the fact that before VS2005, wchar_t was declared as unsigned short, but wchar_t is a fundamental type (as it should be). The top-level problem is wchar_t is no longer directly assignable to unsigned short. The actual problem is the SAX2 interface is documented in terms of wchar_t (e.g. ISAXAttributes::getLocalName ) while ...Show All
Visual Studio Toolbar buttons getting disabled
Hi, I developed an addin and added a toolbar to it (Visual Studio 2003). The toolbar is instantiated in the CConnect::OnConnection(...) function. Everything works fine and the toolbar is visible, however all buttons of the toolbar are disabled. I have tried various things to enable them but to no avail. I have tried using Office::CommandBar::put_Enabled(...) (for the entire menu) property and Office::CommandBarControl::put_Enabled(...) (for each individial control bar item) property. Any help will be highly appreciated. P.S. I have noticied that people usually answer questions related to VS 2005. Is it true or just my feeling If yo ...Show All
Visual Basic Open
Can someone tell me how to open an application manifest if you do not have .net on your computer. I don't know. What did you want to do A manifest file is for use by your exe. You say the machine does not have .NET on it, if so, then you can't run the app, so I can't understand what you're trying to achieve - to run the app you require the framework. Why would you be playing with the manifest file on a machine that can't run your app ...Show All
Smart Device Development DMProcessConfigXML not working
I have a program that uses "DMProcessConfigXML" to configure GPRS connections. It's been tested to work on the O2 Mini and BenQ P50 (both running Pocket PC 2003 Second Edition). However, when I tried it on the Lenovo ET 960 (running Windows Mobile 2003 Second Edition, Version 4.21.1088, Build 15102.3.0.1), it fails. When it fails, it says: "Dialed: Cannot connect for an unknown reason. To check your connection settings and change them if needed, tap Settings. If the problem continues, reset your mobile device according to your manufacturer's documentation and try again." However, if I manually go through the motion of configuring the connect ...Show All
Windows Forms Forcing a control to lose focus
Hi, What would be a quick way to force a control (more specifically, a ComboBox) to lose focus I tried sending a WM_KILLFOCUS message, but the keyboard focus remains at the control. I guess my question is how can I kill keyboard focus to a control There is a registered Windows Forms WM_USER + ... (I don´t remember), that&nbs ...Show All
SQL Server Database Sort Order / Collation
I have an O2 Xda IIs Pocket PC running PPC 2003 SE, WWE (Worldwide English) edition. I want to create a database which contains all Chinese characters that have been mapped under the Unicode Standard. I already have a similar database on my desktop PC. On my desktop PC, I have used the collation Chinese_Hong_Kong_Stroke_90_CI_AS. However, on my Pocket PC, I do not see any Chinese or even Unicode sort orders. The best I get is "General". I want to use the Chinese sort order to govern the way the characters are sorted (ie., characters with fewer strokes appear first). How am I able to do this / Is there anything extra that I may ...Show All
Visual C++ VS2005 cannot add ATL Simple Object into a ATL Project?
This is really weird and annoying me. In my VS2005 Team Edition for Developers(8.0.50727.42), I cannot add a ATL Simple Object into a ATL Project. The "Add Classs" dialog just show diabled name & Location. If I select "ATL Simple Object" and click "Add" button. It pops up a error dialog "ATL classes can only be added to MFC EXE and MFC Regular DLL projects or projects with full ATL support.". I don't think I am the only person who meet such situation. Google and MSN search doens't get me any helpful info. I searched local file and found the error message is in file "...\VC\VCWizards\1033 ...Show All
Visual C++ calling 64 bit dll's from 32 application
Does there exist any way, however complicated it may be, to call functions present in a 64 bit dll from a 32 bit executable I know its not possible to link 64 bit dll directly to 32 bit executable, but is there any work around possible I don't believe there is one but other folks on the forum could have more details. Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development Edit And Continue
Hello, How can E&C be activated on a x64 windows box against a x86 application thanks Edit and continue works on my machine for an application compiled as x86. I am running vs 2005 team system. The option for edit and continue is the tools menu -> options --> Debugging -> edit and continue. Make sure the edit and continue check box is checked. ...Show All
Visual Studio applying smart indentation rules
Hi, I have been facing a problem regarding the implementation of smart indentation rules in my custom language service. i am not able to find out which interface should i implement and where should i write my rules. Please help me with the process. Thanks in advance.. Jimmy, Have you tried implementing the IVsLanguageLineIndent interface (in textmgr2.idl if you are using native code or Microsoft.VisualStudio.TextManager.Interop.8.0.dll if you are using managed) Take a look at that interface and see if it answers your questions and then let me know if you are still having some problems. Thanks, Dylan ...Show All
Visual C++ Calling C++ dll from C#
I am trying to use a C++ dll in my C# application but unsuccessul. Here is what I have done: 1. The C++ code was developed using open BSD. 2. I made a C++ CLR dll using visual studio 2005 - "tc.dll" 3. In my C# application, I add the "tc.dll" as a reference from the solution explorer 4. I tried to instantiate the class of tc.dll using myClass mc = new myClass(); The C# program can not find the class at all. I assumed that since it is built as a assembly dll, all the class and their member functions in there should be visible if referenced. I am very new to C# and .Net, and not sure if what I am ...Show All
Visual Studio 2008 (Pre-release) Testing
What do i need to download to test my Visual Studio 2005 with WinFX extensions developed small applications on Vista i have only tested it on XP and 2003 server. Developping WinFX applications on Vista is more simple than developping on XP or 2003 Server. Indeed, WinFX Runtime Components are already included on VISTA. So you just need to download: - The Windows SDK: http://www.microsoft.com/downloads/details.aspx FamilyId=13F8E273-F5EA-4B7B-B022-97755838DB94&displaylang=en - Optional, you can download the "Orcas" WinFX Development Tools: http://www.microsoft.com/downloads/details.aspx FamilyId=31F9F15D-00E0 ...Show All
Visual Studio Tools for Office Repeating data in Word - how to?
What would be the best method for displaying a list of header and detail rows in a word document I am not sure I understand the problem correctly, but you can look at this article that describes a method for addng repeating data in Word. http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_wd2003_ta/html/OfficeVSTO_WordToImportXML.asp ...Show All
Visual Basic dynamic help window
I've been using vs 2005 for quite a while. I just noticed that the dynamic help window has disappeared. I looked at the view menu. It wasn't there. I searched the msdn vs 2005 help file, and didn't get any help. How do I open the dynamic help window dennist685 I can not find it either, Looked in the help menu, Not there. Using VB Express right now until my Prof software gets here. It's like it has just disappeared! ...Show All
.NET Development VS 2003 project template
Hello Few day ago I discovered a wonderfull word of creating my own project templates in VS and now I see that VS has a lot more additional functionality then it appear on the beggining. Anyway, I've tried to created my first project template and faild in one point: I have problem with adding additional DLL librarys by the script which add files to new created projects. Of course I was digging thru net but so far didn't found anythink. If any one could help me with that I'll really appreciate it. In few simple words I show where I'm am. 1. I have created complete project template which after choising my project from the project wizard l ...Show All
