microsoft.public.dotnet.languages.vc Archive - June 2004
Post a message to this list
Messages
Page: 123456
how can I acess XML file in Managed C++ application (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I wanna write an application using xml technology with MS.NET2003 VC .NET,but I don't know how to add xml functionality to my application, So anybody can offer same artical or snipped codes? Thank for your the advanced. Best regards. Allen Zhang
Sound advice (9 replies, VIP)
microsoft.public.dotnet.languages.vc
Can anybody point me to or give a simple source example of a managed C application that can play a wav sound file? I know a little about playSound(), but it doesn't seem to like to compile (even though it's 'recognized' via type ahead in the editor). Required header files might be my problem, not sure... Thanx in advance! :)
LNK2001 - unresolved external symbol (stat) (5 replies)
microsoft.public.dotnet.languages.vc
Hi all Can anyone tell me what I should link in to get the following error sorted? Also for future reference any quick ways to resolve a linker reference from an include like #include sys/stat.h in order to beat these linker errors quickly? error LNK2001: unresolved external symbol "int cdecl stat(char const *,struct stat *)" (?stat@@$$J0YAHPBDPAU0@@Z)
using dotnet dll in VC7(unmanaged) (2 replies, VIP)
microsoft.public.dotnet.languages.vc
I have developed a software using visiual C 7 , but i have a problem in using a dll i created using VB.net . I don't know how to refrence and use this dll as the software was developed using unmanaged code. I tried to refrence the Dll in MFC Application in VC7 but i couldn't , I seek help in this problem thx From: Hany Harraz Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id c4 ptL96vk...
pragma directive to turn buffer security (/GS) on or off (7 replies, VIP)
microsoft.public.dotnet.languages.vc
Is there a pragma directive to turn buffer security (/GS) on or off. I see the runtime checks and check stack pragmas. But there doesn't appear to be anything comparable for buffer security. Thanks, George.
The memory couldn't be "written." ? (2 replies)
microsoft.public.dotnet.languages.vc
Here is my code: iniFile path to ini file ; TCHAR ps09[MAX SIZE]; GetPrivateProfileString("PRINTERS", "PRINTER1", "", ps09, MAX SIZE, iniFile); CheckPrinter(ps09); and I get an error saying "The memory couldn't be "written."" Now, if I just type in: CheckPrinter("printername"); it works fine. Is there something I'm doing wrong here? It appears that the GetPrivateProfileString function isn't correc...
Code examples for Reading and Deleteing a registry value? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Hey all, I'm a long time VB programmer and very new to VC 6.0. I'm trying to figure out how to read and a delete a registry value. From the MSDN documentation I gather that I should use CRegKey's RecurseDeleteKey function, but there are no programming exmples to show how to do this. Does anyone have something like this to share? Thanks in advance, LC
Error On Help Page (3 replies, VIP)
microsoft.public.dotnet.languages.vc
[BTW: I'm running Visual C 6.0 (Visual Studio)... Thanks....] When I click on *some* links in the text on the help pages of Microsoft Visual Studio 6.0 for C I get an error dialog box with the title 'Internet Explorer Script Error'. The dialog contents always go something like this: Line: 1 Char: 1 Error: Object doesn't support this property or method Code: 0 URL: mk:@MSITStore:C:\Program%20Files\...
Unable to upgrade VC6 exe to VC7 (3 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi All, I have an application (EXE) implemented in VC6, that uses Stringrays Objective Toolkit and Objective Grid classes. When i try to port this application to VC7 i get various linking errors mostly with id LNK2001, LNK2005, LNK2019 etc.. For Exampke: RMSCTreeCtrl.obj : error LNK2019: unresolved external symbol "public: void thiscall SECTreeNode::DeleteChildren (void)" (?DeleteChildren@SECTreeN...
j@hnny (3 replies)
microsoft.public.dotnet.languages.vc
I've got a procedure that is responsible for performing the following operations on a richtextbox: 1) determining what parts of the text to format 2) formatting specific ranges of text a specific color. I need to do this whenever the contents of the richtextbox change. The algorithm is quite fast as I have built in some speed saving optimizations, but i need to do some more, I was wondering if any...
Adding non-standard file name extensions to C++ project (3 replies)
microsoft.public.dotnet.languages.vc
I am trying to get filenames with a .cp exenstion to compile as C files in a VC .NET 2003 project. I have added the extension to the list in Tools Options Projects (& restarted) and when I get the properties of the .cp file in Solution Explorer it says that it will use "C/C Compiler Tool" as the tool. However, when I open the file it is not syntax highlighted and when I compile the project I get t...
FlashWindowEx does not work with Windows Classic theme (3 replies, VIP)
microsoft.public.dotnet.languages.vc
I have an MFC application that uses FlashWindowEx to notify the user of an event by minimizing a window on the taskbar and calling FlashWindowEx. This works fine except if you are using the Windows Classic theme on Windows XP. If you switch back to one of the built in XP themes, it works fine. When using the classic theme, the taskbar button flashes one time, and then appears 'pushed', like it is ...
How to convert from managed to unmanaged (and viceversa) byte arrays and strings? (8 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, converting from the managed to the unmanaged world (and viceversa strings) and byte arrays is something I do often and I'd like to identify the most correct and efficient way to do it. Also, I was wondering could there be issues in not making copies when converting??? I was thinking, when "pointing" to the same data with both managed and unmanaged strings/arrays couldn't there be issues suc...
Same code build twice => diff binary (16 replies, VIP)
microsoft.public.dotnet.languages.vc
Hi all, I am using Win2k, VS. NET 7.1 (MS development Environment 2003 7.1.3088) and I noticed that by building the exact same code twice the generated binaries are different (not much, but they are). To be sure I tried a simple application like void main(){} and 2 times rebuilding the project gets 2 different binaries. Has anybody any clue why this happens? Could I somehow change a setting or som...
Can't open VC++ 7.1 projects in 7.0 (3 replies)
microsoft.public.dotnet.languages.vc
We have users who are having a problem reading projects written in VC 7.1. Specifically, here is their e mail describing the problem: Incompatibility 7.0 will not open a solution built by 7.1. A time consuming work around is for the person using 7.0 to open the project built in 7.1 as a visual 6.0 workspace (.dsw). However, in doing this all the parameters are lost and both people are then require...
Path string inside DLL file (2 replies, VIP)
microsoft.public.dotnet.languages.vc
Hello, I have created a DLL in Release Configuration. When I opened the DLL in hex editor I noticed that path string with full path, where my linked DLL is located, can be found inside DLL. My question is: Is there a way (may be some option key) not to include any path information into a final DLL? Thank you in advance! WBR, Dmitri
Weird debug behaviour (4 replies)
microsoft.public.dotnet.languages.vc
In vc7 (studio 2002), when I try to debug the first "if" statement, the IDE jumps to the next valid line and evaluates it even if the if statement is false. What is going on? if( (theDealer.m nPoints 15) && (theDealer.Hand.size() 2) ) //Break Point set here but... { vector Card ::iterator vdi; // ... runs to here once debugging starts. Even if false is returned initially. vdi find if( theDealer.Ha...
Mixed-mode DLL crashes when calling managed code (2 replies)
microsoft.public.dotnet.languages.vc
Hi all, I'm trying to make a plugin DLL for a third party application, using VC .NET 2003. This DLL acts as a bridge between the C plugin API of the application, and my actual plugin code written in C#. When the app calls my unmanaged functions, they work fine. But as soon as my unmanaged functions call managed functions (in the same source file!), the app reports an "unknown exception" error. Ple...
Converting managed int to unmanaged PBYTE? (4 replies, VIP)
microsoft.public.dotnet.languages.vc
I have a managed method that has an int parameter that has to be passed to an unmanaged method that takes a PBYTE and associated length as a DWORD. Anyone have any sample code that shows how to do this? Thanks.
__property set_ naming issue (managed C++) (4 replies, VIP)
microsoft.public.dotnet.languages.vc
What would you expect from the following: enum Type { a, b, c }; public gc class MClass { public: MClass(Type t); property void set Type(Type t); // etc. }; When compiling, I get very strange errors (in this case, for the constructor) where the Type type is compiled as the managed Type property. It is an easy fix, although the compiler diagnostic is far from intuitive. Comments?
Managed c++ vs Unmanaged c++ (2 replies)
microsoft.public.dotnet.languages.vc
Hello, I'm new to dotnet. I want to write an app that's communication with a sql server 7 database via ADO.NET. This app need to have fast and stable throughput. I know that the database access itself will not be the bottle neck. The Question is whether i should use Manage c /C# or Unmanaged C to do it? If I use Unmanaged c , what sort of API should I use? for example MFC or Win32 API or some othe...
Metadata importing puzzle (5 replies, VIP)
microsoft.public.dotnet.languages.vc
When using another assembly, I prefer adding it to the References section of the project that uses it (thus adding the appropriate /FU option to the compiler command line) over an explicit #using directive in the source code. So far, this has worked without any problems. Recently, however, I tried to reference an assembly for which this just doesn't work. I have added it to References, the emitted...
Lock in MC++ (4 replies, VIP)
microsoft.public.dotnet.languages.vc
What is the equivalent of Lock keyword in MC
LARGE_INTEGER arithmetic... (4 replies, VIP)
microsoft.public.dotnet.languages.vc
Here is some code of mine for seeing if a printer job, jobs[0], is more than 5 minutes old: FILETIME syst, jobt; LARGE INTEGER syst2, jobt2, dt; GetSystemTimeAsFileTime(&syst); SystemTimeToFileTime(&jobs[0].Submitted, &jobt); syst2.HighPart syst.dwHighDateTime; syst2.LowPart syst.dwLowDateTime; jobt2.HighPart jobt.dwHighDateTime; jobt2.LowPart jobt.dwLowDateTime; dt.QuadPart syst2.QuadPart jobt2.Q...
lstrcat not producing desired results? (7 replies, VIP)
microsoft.public.dotnet.languages.vc
I'm trying to concatenate two strings with lstrcat(), but for some reason it is not working. I made sure the first string had enough buffer space to hold the second, but it doesn't do any concatenation. Any ideas? Thanks in advance.
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification