| Is there an API to format the HD? (9 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Is there an API to format the HD? I found to use the DeviceIoControl with IOCTL DISK FORMAT TRACKS code can format the floppy, but how to format the HD, I don't want the SHFormatDrvie way. Thank you very much! |
|
| Statically link dll code into exe (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, is there a way to do this? All you have is the lib and the dll file (so no source code). Is it possible to link them physically into the exe we're creating in a VS.NET 2003 unmanaged C solution's exe? |
|
| I am running Windows ME (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I continually have a Microsoft Visual C Runtime Library Runtime Error! This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. |
|
| Problem with event declaration - possible VS.NET bug? (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello, I made a post relating to this issue a while back, but I haven't received any answer, so here I am again. I am writing a mixed C dll which uses the following declaration: typedef System::Byte ByteArray gc[]; Then I have an event declared in the main class for the dll as follows: event void MyEvent(ByteArray* ba); The problem is that with this event declaration, when I compile the code, I ge... |
|
| lnk1181 glowcode.lib missing (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I took an sdi mfc app created under vstudio (prior to .net) and rebuilt it using vstudio.net. The debug configuration builds fine, but when I try to build the release version I get the following linker fatal error LNK1181: cannot open input file 'glowcode.lib'. There is no such file on my workstation. What is glowcode.lib, and why is the linker looking for it? If I need it, where do I get it? I am... |
|
| Managed C++ and STL - TypeLoadException (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I am getting TypeLoadException when building and running generic code that makes use of the standard library. In particular when std::vector::resize is called. Thanks bille |
|
| WM_SOCKET_NOTIFY just stops (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| We're using MFC's CSocket, CSocketFile, CArchive in our socket application. The test PCs are running Windows 2K and Windows XP SP1. We've built our applications using VC 7.1 (Visual Studio .NET 2003). We're currently running a debug/unicode build of our projects. The CSocket derived object is instantiated in a dedicated CWinThread derived thread. The thread's message loop uses the PeekMessage(...,... |
|
| Link error LNK2019 (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I am building an ATL based COM project with VS 7.1 C . I am getting a link error LNK2019 as below: error LNK2019: unresolved external symbol main referenced in function mainCRTStartup As far as I know the project doesn't have a mainCRTstartup. So what is going on? Any help would be appreciated. Royce Posted using Wimdows.net NntpNews Component Post Made from http://www.DotNetJunkies.com/newsgr... |
|
| STL std::min (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have visual studio .NET 2002 Pro and in c when I include algorithm I am not getting std::min. Any Ideas? |
|
| Runtime libraries under win95 (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, i'm trying to run a sw called Dream that use sound card I/O under win95 OSR2. The sw work well under win me & XP, but under win95 audio functions have serious problems and sw is completely unusable. In addition, when quitting program, an error window come: The following error occured: Sound Interface,WaveInUnprepareHeader()failed In sw ng, a guy tell me to try to upgrade VC runtime libraries. ... |
|
| InitializeSListHead() (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello, I'm writting console application for W2K. I'm using InitializeSListHead() function to achive synchronization. I don't have problem to build application. BUT when I'm trying to execute application I've got message: "The procedure entry point InitializeSListHead could not be located in the dynamic link library KERNEL32.dll " Does somebody know how I can get around it ? Thank you, Dave |
|
| Mixed DLL : conflicts when using of several imported unmanaged LIBs (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I have imported several unmanaged C LIBs into a mixed C DLL. Two LIBs have the class name (CLog) without namespace. Is there a way to assign a namespace to each imported LIB in the mixed DLL project? Thanks! Bertrand Boichon |
|
| Lapack with VC++ (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| hi, how can I install the library Lapack and creat the lib file with VC . my thannks 10^9 xuan SON |
|
| CDC::SetDCPenColor (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| The mfc CDC::SetDCPenColor method does not exist in the standard include library mfc71d.lib. This library is located in $(VCInstallDir)\atlmfc\lib. It contains the CDC::SetBkColor so I assume this is where SetDCPenColor should be as well. For some reason in my Visual C Pro 2003, Intellisense does list the method so the header is there, but a dumpbin of the mfc71d.lib shows that it is not present. ... |
|
| DDE Execute broken in MFC (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| CFrameWnd::OnDDEExecute appears badly broken, at least in my copy of VS .net ( MS Development Environment 2003 7.1.3088 ) Is this a kinown issue, and has a general fix been distributed anywhere? Fortunately, it's a virtual method, so there's an easy work around if you don't mind a little code bloat. Declare your own OnDDEExecute in your CFrameWnd implementation LRESULT CMainFrame::OnDDEExecute(WPA... |
|
| Fails to create implicit library with DLL (4 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have the following command line for building a TEST.DLL, but the implicit .lib is not being created. Why? /OUT:"lib/TESTd.dll" /NOLOGO /DLL /DEBUG /PDB:"lib/TESTd.pdb" /OPT:NOREF /IMPLIB:"lib/TESTd.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib |
|
| saving a webpage in vc++ (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi everybody, The following snippet is part of a software. This software runs on a webpage and the following snippet saves that webpage. The problem is that untill i close down the website on which the software is working the process of saving file is not getting completed. I want the software to be running on that website so the website to be open while the page is saved. Please help. CComQIPtr I... |
|
| bug? namespace not needed (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, encountered a bug (?) using *template* and *namespace* in MS VC .Net 2003 (7.1.3088). After long searches, I could reduce it to the following code: namespace MyNS { struct A { int m; }; template typename T T plus (const T& lhs, const T& rhs) { T ret(lhs); ret.m rhs.m; return ret; } /// rhs } // // M A I N // void main() { MyNS::A a, b; plus(a, b); //why not 'MyNS::' needed ??? } Manne Posted b... |
|
| VS 2005 May Preview: MSVCRT.lib(cpu_disp.obj) : error LNK2005: __set_SSE2_enable already defined in MSVCRT.lib(MSVCR80.dll) (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I'm trying to get stuff to compile with the May VS 2005 Tech Preview and I get the following error when trying to link a .DLL: MSVCRT.lib(cpu disp.obj) : error LNK2005: set SSE2 enable already defined in MSVCRT.lib(MSVCR80.dll) c:\out\MozartVC80Native\Bentley\Program\MicroStation\toolsubs.dll : fatal error LNK1169: one or more multiply defined symbols found I don't understand this error. The alleg... |
|
| Problem with resources of Dll (9 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have a SDI program which contain one dll. There are some resources in my program like string table, toolbar,icon etc. I insert one extra resource DialogBox(IDD DIALOG1) and one menubar(IDR MENU1). I load and set IDR MENU1 in CMainFrame::OnCreate() and display IDD DIALOG1 in any event in my program. I add a dll to project.I copy all these resources in my dll. Then i load this dll and set resource... |
|
| Visual C++ runtime error - when printing (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi Am not really that up on computers so not sure if I have posted this to the right newsgroup! I am running Windows XP and find that, sometimes, when I go to print (whether in word, excel, the internet) a box comes up saying "Microsoft Visual C Runtime Library. Runtime Error! Program: C:\Program Files\Microsoft Office\Office10\WINWORD [or whatever application].EXE. Abnormal Program termination" C... |
|
| Same code build twice => diff binary (16 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| 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... |
|
| Porting Code from VC++ 6.0 to VC++.NET (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I took a code that was written in VC 6.0 using MFC and compiled in VC .NET. It compiled fine but when I execute the application I get an Debug Assertion Failed Message. The Code works fine in VC 6.0 Can someone please tell me what is wrong? Debug Assertion Failed! File: afxwin1.inl Line: 22 Shreyash |
|
| Missing <stdint.h> from C99 standard (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I can't find the header file stdint.h from section 7.18 of the C99 standard (ISO/IEC 9899:1999), which is intended to provide the int32 t int64 t typedefs that otherwise get reinvented thousands of times a year. Any idea when this will be added to Visual C ? It seems like such a minor level of effort for a compiler vendor! Thanks, Larry West |
|
| _vsnwprintf .NET 2003 bug? (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| try to write code like this WCHAR w[4]; w[0] L'?'; w[1] L'?'; w[2] L'?'; w[3] L'?'; int iret vsnwprintf(w,L"1234",4,NULL/*or any correct address*/); iret will be equeal 4 however vsnwprintf doesn't write terminating null char to the end of the string. is it correct? may be it must return 1 too small buffer? ( seems VC6 RUNTIME do exactly this) |
|
| error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup (3 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello all, I met this error,what's the reason? Thanks in advance. |
|
| Function to format a number according to current locale (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi all... What function, if it exists, do I have to use to get the string representation of a number according to the locale information? I tried using tcsxfrm but it returns the same value as input. Thanks Jaime |
|
| winioctl (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I try to retrieve local drive layout info in WinXP by calling: 1. HANDLE hDevice CreateFile("\\\\.\\PhysicalDrive0", 0, FILE READ ACCESS | FILE WRITE ACCESS, NULL, OPEN EXISTING, 0, NULL); 2. BOOL bResult DeviceIoControl(hDevice, IOCTL GET DRIVE LAYOUT EX, NULL, 0, dlie, sizeof(dlie), &tmp, (LPOVERLAPPED) NULL); dlie DRIVE LAYOUT INFORMATION EX and tmp DWORD. I can't compile the code. because ... |
|
| ifstream in C++ .Net 2003 getline problem (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| In .Net 2003 I use #include fstream using namespace std; Sometimes getline does not stop at the end of line but reads up to the size of a buffer. In some programs it works OK, in some makes this problem. Is there a way to resolve it? Thanks, |
|
| Problems with delete (2 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, I have a structure in a static library, in that I have a byte pointer. When I delete the byte pointer using delete [] outside the library, it gives me an access violation error. Please tell me the solution? From: Mayank Garg Posted by a user from .Net Guru (http://www.dot-net-guru.com/) Id yaRWiSIg3EWY0YotGRz gA /Id |
|
| Windows Messenger interaction (5 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| Is it possible to interoperate with Windows Messenger using .NET? For example to create and register event handlers to various windows messenger events like someone of your contacts to come online. If yes please mention the relevant namespaces and/or classes. Ioannis Vranos |
|
| How to programatically determine the .NET Framework Version (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| How to programatically determine the .NET Framework Version Tarun ********************************************************************** Tarundeep Singh Kalra (tarundeep1976 nospam at yahoo dot nospam dot com) ************************************************************************* |
|
| System::web::mail not found (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi , i have visual studio.NET 2003 installed , but there is no namespace by the name System::Web::Mail. Any idea how to get it ? Tarun Tarun ********************************************************************** Tarundeep Singh Kalra (tarundeep1976 nospam at yahoo dot nospam dot com) ************************************************************************* |
|
| DBGPROXY.EXE holding a file reference of a DLL (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi All, To debug a C program running under DLLHOST, i am attaching to the DLLHOST process..even after detaching, dbgproxy.exe is holding a file reference(HANDLE) to the C COM component. So when i try to modify the C program and compile as the dbgproxy.exe is holding a reference unalble to generate teh dll file as it is being used by the dbgproxy.. In addition to the dbgproxy, DLLHOST.exe which i w... |
|
| DLLHOST crashes when network is unplugged (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi All, When network is unplugged, components which are residing under COM crashes during component creation, this is the case with the components which are compiled with VC .NET. If the same component is compiled with VC6.0 component creation is successful. Any suggestion are welcome. Regards, Ramesh |
|
| Any free SSH API? (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Is there any free SSH API to use with C ? |
|
| C2621 when using "find_first_of" (STL) (7 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Greetings! I'm now building some VC6 compatible programs under VC7 (VS.NET 2003). Here is my problem: vector wstring ::iterator itArgv; // ...... if (basic string wstring ::npos ! itArgv find first of(L"ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1)) // error C2621 { // ...... } Based on the header file "xstring", "find first of" returns "npos" when the data specified cannot be found. How can I test the return v... |
|
| findfirst behavior (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi, It seems that findfirst/findnext always returns files in a directory in alphabetic order, is there a way to change that ? How can I get files sorted by type or size .... and not always by name. Maybe I should use another functions set but I don't know which one. Regards, Thierry Language Visual C 6.0/MFC OS Windows 32bits |
|
| ana (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I need clear the pantalla,but I use clrscr and this comand do not exit in visual c |
|
| Using dll built on MSVC6 with .NET 2002 (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Greetings, My C application built with .NET 2002 link with a dll that was built with MsVC6. My application calls a function which return a char *. This string has been dynamically allocated in the dll and I should normally desallocate it (delete [] thePtr). But when I'm doing this, an assert failed " CrtIsValidHeapPointer(pUserData)" File : dbgheap.c Line :1132 When I buid my application with MsVC... |
|
| What versions of the runtimes are available in Windows 2000 and all of the subsequent service packs? (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I'd like to know so I can determine a minimum service pack level so that I don't have to redistribute any runtime files. Same for Windows 2003. |
|
| Problems linking unmanaged code to managed c++ dll (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have c/c code that I want to be able to call from managed c . (It is code for the GSM codec it's not mine, and I know it works) If I try to put the code in the same project, I get errors as described by: http://support.microsoft.com/default.aspx?scid kb;en us;822329 If I try to compile the code in a separate project as a static library, and then link to it, I get errors as described by: http://s... |
|
| MSVCRT.DLL (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi there, Hope someone can help me. My PC is running on WXPhe, P4. I installed a digital video editing software, Adobe Premiere 6.0. The installation files for this software have a version of MSVCRT.DLL which is causing the application to close. I did visit the MS KB pages, but so far I did not find the right solution. Shall I replace it with a newer version ? As it is packaged in a .cab file, how... |
|
| key events on browser contained in my application (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi! I'm developing a client application to chat with other people. This one has several functionalities that are not important here. My problem is that it contains a web browser where I load a page to chat with other people. I use my own class to implement the browser container. It inherits from IDispatch and use references to IUnknown, IWebBrowser2 and IHTMLDocument2. The page that loads into bro... |
|
| ___mb_cur_max unresolved: Yet MSVCRTD exports it! (3 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have a DLL which I am trying to link in debug mode. To that end I've specified the multithreaded debug DLL version of the runtime lib which, if I've read the docs correctly, should leave me linking to MSVCRTD.LIB My DLL is also linking to a static lib which was built using LIBCMT.LIB. When I try to link I get the following error: LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol m... |
|
| Internal compiler error (4 replies, VIP) |
| microsoft.public.dotnet.languages.vc.libraries |
| I am getting an internal compiler error only in release mode (debug mode has no warnings) when compiling the following templated function: the error is:c:\development\dotnet\src\inc\utils.h(188): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'f:\vs70builds\3077\vc\Compiler\Utc\src\P2\main.c', line 148) template class T inline T* HeapStack T ::alloc push(int nNumberOfBlocksNeeded) { T *... |
|
| Help with prinf.c (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Everytime I try to execute my program it gives me an error and stops execution and pulls out the printf.c in the debugger. Some one please tell me what to do to overcome this error. If I posted a mesg to the wrong group do tell me which group to join. This is the error and the printf.c pull out WrapiTest.exe!main( int32 argc 1, char** argv 0x07253438) Line 68 0x10 bytes C Thanks, Priya |
|
| Singleton EXE COM server lifetime limitations (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hello, Does Singleton EXE COM server have any lifetime limitations? Why my client starts to create new instance of Singleton EXE COM Server after about 30 minutes pause in communication with existence instance of Singleton EXE Server? If this pause is shorter then 30 minutes everything works fine and each call of CoCreateInstance() returns the same pointer to the existence object. Regards Leonid |
|
| System.IO.FileLoadException from Managed Extension .NET 2004 (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| I have created a new .NET Class Library using C to access some legacy code. The .dll compiles fine and I can build a C# project that references this file. Everything goes great until a call to the .dll is invoked from the C# project. Then I get: ************** Exception Text ************** System.IO.FileLoadException: The located assembly's manifest definition with name 'GDALC' does not match the ... |
|
| stream I/O conversion (2 replies) |
| microsoft.public.dotnet.languages.vc.libraries |
| Hi there, We are converting our apps from C 6.0 to C .Net 7.1. The compile fails when is sees the statement: #include fstream.h . In fact fstream.h is not in the 7.1 directory structure. The documentation says to use useoldio.h but it is not in the 7.1 directory structure either. Does 7.1 support stream I/O are not? If it does, which header file should be included? If it doesn't, is there any opti... |
|