-
- Is it possible to have the .dll outside the system32?
by has981
- 14 Replies
- Last post
by has981
- See, I have this car physics simulation that uses SDL. I've placed all the lib and dll files in a sub directory and I'd like to have so that anyone can just double click the exe file and play around with it without having to copy any .dll's to the system32 directory or anywhere. Now in the project properties > Linker > Input > Additional Dependencies I'm specifying SDL.lib (along side ot
-
- Read access violation when buffer bigger than 2048
by markgrif
- 13 Replies
- Last post
by Brian Kramer
- Hello,
I'm an old mainframe assembler programmer and I'm trying to teach myself C++. I've bungled through writing a program to copy a file (just to get familiar with I/O. The program works fine when variable BuffSiz is 2048 or smaller. If it's bigger, I can't even start debugging. The error is:
Unhandled exception at 0x004012af in Compression.exe: 0xC0000005: Access violation reading locatio
-
- a problem with typedef
by Jacob bensabat
- 11 Replies
- Last post
by Carl Daniel
- Hi
I am trying to port the libkdtree library by M.F.Kraft to visual c++.
I am getting compilation errors around a typedef
this is the code
template <size_t const __K, typename _Val,
typename _Acc = _Bracket_accessor<_Val>,
typename _Cmp = std::less< typename _Acc::result_type>,
typename _Alloc = std::allocator<_Node<_Val> > >
-
- VCCodeFunction adding override keyword
by Tiaan
- 0 Replies
- Last post
by Tiaan
- We are using the visual studio automation from an external application to write classes with functions in them in .cpp and .h files.
With the VCCodeFunction I can see no way to add the override keyword after the funtion. Can anybody please point me to a way to do this. (Using the VCCodeFunction we can set access rights parameters, whether it is virtual etc.)
Thanks
Tiaan
-
- wide character (unicode) and multi-byte character
by George2
- 6 Replies
- Last post
by George2
- Hello everyone,
Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when talking with another team -- codepage -- at the same time.
I am more confused when I saw sometimes we need codepage parameter for wide character conversion, and sometimes we do not need for conversion. Her
-
- This code snippet makes no sense...
by Bapa
- 14 Replies
- Last post
by einaros
- I've come across some code syntax I've never seen. It compiled, but I don't know how, or what it even does!
I've been reading a book about DirectX, and in one of the examples, this little piece of code was present: D3DXMATRIX *D3DXMatrixIdentity(D3DXMATRIX *pout); "D3DXMATRIX" is a type, of course. And "D3DXMatrixIdentity" is a function, of course. Now I don't see how this
-
- Getting the "Duration" of a LAN connection?
by JeffRozar
- 4 Replies
- Last post
by JeffRozar
- In the Local Area Network connection status window, it shows the "Duration" of time the connection has been connected. How can I get this Duration Thanks!
-
- Convert project .dsw from VS 6 to VS 2005 from command-line
by CDQ
- 7 Replies
- Last post
by mary_kim_ngoc
- Hi, I was wondering how to compile a .dsw project written in Visual Studio 6 in Visual Studio 2005 from the command-line. The GUI would give me an option to convert but I need to use the command-line in Dos to compile from a script. When I try to use devenv project.dsw /upgrade, it just doesn't work. It prompted me to convert the project first. Does anyone know how to force it or work around Is t
-
- Binary files question
by Harry123
- 4 Replies
- Last post
by Harry123
- Hi, I need to convert a binary file to ascii format. I have a program which was written in Pascal many years ago and it creates config files which are in binary format(Or some sort of format that I dont understand - there are a lot of 'NULL's 'STX's and 'SOH's whenever I open it in Notepad++ etc.)
I do not have the source code so I dont really know what kind of format the files are in.
-
- WMI Win32_ThreadStartTrace
by Alex1st
- 1 Replies
- Last post
by Damien Watkins - MSFT
- In Win32_ThreadStartTrace ThreadID is ID of thread wich is started If yes, how can I find "parent" thread - thread which created this new starting thread. Another words if I am in new created/started thread I want to know ID or handle of thread who created me.
Thanks.
-
- WYSIWYG HTM editing within VS 2005?
by SteveLK
- 4 Replies
- Last post
by SteveLK
- I'm looking for an easy convenient way to add HTML documentation to our projects.
In the past, we have used FrontPage to create the following types of project related documents:
Project Specifications
User Documentation
Developer Notes
etc.
Of course this had to be done outside of the IDE. I'm hoping this type of functionality is provided from within VS 2005 IDE.
It woul
-
- VC+VFP+ADO+filter
by boldeagle
- 2 Replies
- Last post
by Brian Kramer
- why "filter "attribute not support wildcard "%" in the front٬but it is ok for those not prefix with"%": str.Replace(' ','%'); str.Insert(0,'%'); sqlStr.Format("comment like '%s'",str); m_pRecordset->Filter=(_bstr_t)sqlStr;
-
- Limiters /Delimiters, Managed C++
by A.Russell
- 2 Replies
- Last post
by A.Russell
- The String::Split function is very usefull, but I've got an ever increasing number of delimiters to use with it, including characters from UTF-8, like those pesky curly quotation marks that Word puts on everything and look like foriegn lettters when opened in anything else.
Is there a method that will specify what you don't want delimited instead i.e, if it isn't an ASCII upper or lower case le
-
- Problem in Image Retrieving
by krishnasamy
- 14 Replies
- Last post
by Ramkrishna Pawar
- Hi,
I am retrieving the image from DLL through vc++ dll. Actually Image is retrieving in Callback function of main function. When I writing that image file inside of the Callback function then no problem in retrieving. At the same I want to send the Imagedata to the another function and write the same which cause the error.
Here I given that code,
//Callback function
pr
-
- Periodic TimeSetEvent Interval not triggering properly
by Chris0956
- 3 Replies
- Last post
by Aleksandr Tokarev
- The periodic TimeSetEvent call to a delay greater than 429496 does not trigger properly. Is there a fix for this problem The delay values that are being utilized are well within the min and max returned by the timeGetDevCaps function. The winmm.dll is dated 08/04/2004 and the winmm.lib is dated 02/18/2005.
Code:
delayTime = 600,000;
timerID = timeSetEvent(delayTime, 1000, CallBackF
-
- Processing Folders & Subfolders
by Zero_
- 2 Replies
- Last post
by Simple Samples
- Hi folks. I'm just wondering how I can iterate through the files, folders, and subfolders of a given directory without using recursion I've heard people talk about enumerating the files/folders, but I don't really know what this means...
-
- Help! DLL errors when I exited my program
by Lejing
- 12 Replies
- Last post
by Simple Samples
- I developed a prgram, and when I exited my program, I may got the bellow errors, but not always! Could any one give me some suggestions Thank you! 02347d07() kernel32.dll!7c80a017() [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll] ntdll.dll!7c94a5d0() msvcrt.dll!77c2c2e3() msvcrt.dll!77c3a243() ntdll.dll!7c94a5d0() kernel32.dll!7c80b6
-
- Create a Wrapper DLL to access C++ lib classes in C#
by ryoung786
- 4 Replies
- Last post
by Bite Qiu - MSFT
- I need to access classes from a C++ project in a C# project. After a bit of research, it looks like the solution is to create a wrapper around the C++ library, create a DLL, then use it in the new C# project. All the examples I have seen reference just small static functions. What can I do, or where can I go, to get a good example of what I'm trying to accomplish Thank you, Ryan
-
- error C3861: 'SHCreateDirectory': identifier not found
by LucyM
- 3 Replies
- Last post
by Simple Samples
- I am getting this error when I compile my code.
I had already included the function SHGetFolderPath
sucessfully, but when I added SHCreateDirectory(NULL, p_path)
it stopped compiling. I have the following headers
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
#include
-
- Getting MS Access Updated/Inserted rows
by Mostafa Shahto
- 2 Replies
- Last post
by Simple Samples
- I am working on an alarm application that has to be more or less real time. In case of an event, a new record is inserted into an Access database in a table named "Events". I need a way to either "detect" this insertion of a new row, or getting this row automatically in a recordSet sent to my VC++ application. Please advice on how to implement this or anyother alternative...
-
- C++, COM+, SQL Server
by FugersonHall
- 2 Replies
- Last post
by Simple Samples
- Hi,
Our company is beginning to use some old technologies: COM+, C++ to connect SQL. I start my career from C#. So I would like to find some resources to learn these technologies. Can anyone provide any information, such as any hyperlinks or books I would like to know how to use C++ to call some stored procedure and update/insert/retrieve data on SQL server database. They look using small p
-
- TimeDateStamp - Converting to a String
by Keith Patella
- 1 Replies
- Last post
by Keith Patella
- Does anyone know how to convert a TimeDateStamp in a IMAGEHLP_MODULE64 struct to a Formatted Date String. I tried using FileTimeToSystemTime but that doesn't seem to be correct. thanks, Keith
-
- C++ exception
by Gregory J.
- 6 Replies
- Last post
by Gregory J.
- Hi! I've a problem with exception capturing.
I thought that in this code, try{} catch(...) would have captured every exception, but when I execute it the program stops and
- in debug a popup says "Expression: vector iterator not dereferencable"
- in release a popup says "An unhandled win32 exception occurred..."
Can some one tell me what's the problem Th
-
- Dev Question - C# or C++
by kumar310
- 10 Replies
- Last post
by Simple Samples
- Hello everyone,
I just recently got a new job for a startup company. For my first project, they want me to design a program that automatically retrieves information from a webpage(for example like taking stock quotes from etrade) and put it into a database. I have no idea how to do that I have no exsprience with SQL or any database programming languages. I also don't know c# that well but
-
- fatal error C1083: Cannot open include file: 'stream.h': No such file or directory
by reena vade
- 8 Replies
- Last post
by reena vade
- I have written a program which involves file handling.Hence i have included the header "stream.h".But whenever I try building the program,I get the following error :
fatal error C1083: Cannot open include file: 'stream': No such file or directory
Kindly help.