-
- Textbox with a background image
by oscar.rodriguez
- 4 Replies
- Last post
by oscar.rodriguez
- Hi, I'm skinning my app's textbox, and I've gotten pretty far, but I'm still having a few problems, so I turn to the experts in here. This is pure Win32, not MFC. I already have my image in a DC, and I'm not interested about flexibility in here, so I resort to the following: * My (multiline) textbox is in a DialogBox, and is read-only. * I artificially set the control color to white, capturing WM_
-
- problems with DirectX program
by fighter92
- 3 Replies
- Last post
by Mike Danes
- My DirectX program doesn't work. It gives me no errors, but if I run it, it gives me errors. What's wrong with it
I do not write my mywin.h and basic.h here, because they are not important and work correctly. Procedures from those header files are Logi, MkWin and ReggWin and TPump, so do not be confused of them, just ignore them.
My code is here:
main.cpp:
#define WIN32_LEAN_AND_MEAN
-
- ATL syntax errors in VC++ 2005 Professional Ed.?
by MarkW1
- 6 Replies
- Last post
by MarkW1
- Hey guys, I am trying to compile some base code I was given provided which uses the atlimage.h header file. I'm not familiar with using ATL, and I'm definitally not familiar with using ATL in VS 2005, but I have been unable to find any good documentation outlining any settings I might need to change. When I attempt to compile the project currently, I get the following errors: Texture.cpp d:\progr
-
- C++ function pointer
by Igor
- 6 Replies
- Last post
by Brian Kramer
- Why the ppp1 is NULL and no compiler's warning nor error
class Test2 {
// public: static void Func1(int* a, int b) { } static void Func1(void* a, int b) { } }; void* Do2() { //return (void(*)(int*,int)) &Test2::Func1; return &Test2::Func1; } int _tmain(int argc, _TCHAR* argv[]) { void* ppp1 = Do2(); return 0; }
-
- Creating Tables in MS-Word
by vinod_psg
- 4 Replies
- Last post
by Brian Kramer
- hi all,
i want to automate MS Word to create tables using VC++ and MFC.. plz help me out with this..
thanks in advance
-
- fopen and large files, failing on "r+", why?
by jgsenecal
- 3 Replies
- Last post
by jgsenecal
- Hi All, I'm very new to Windows programming, and am developing an application under XP (Win32) that needs to read, modifywrite, and append to a file. For portability I'm using standard C functionality (fopen) to open the file. When I attempt to open a file that is larger than 4 GB for reading and modifying ("r+") I get an error--invalid parameter. I can open the file for reading ("r
-
- import/exporting symbols
by bwasileski
- 1 Replies
- Last post
by einaros
- Hi,
I have a shared library I'd like to export constant symbols from - and the same time import them for use in other libs (dll's). While exporting the constants from the parent lib is rather easy attempting to import them is causing problems - unresolved. After a lot of tinkering, I wound up just removing the const and all was well. Does anyone know what the problem is and why I'm not able
-
- 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
-
- ScrollWindow Problem
by avikhinvasara
- 4 Replies
- Last post
by Damien Watkins - MSFT
- Hi,
I have some problem in ScrollWindow function. My idea is to just scroll the part of the window. Like if window size is 500 * 500. I wanted to scroll horizontally from 200 * 0.
ie first 200 pixels must be fixed and the other 300 units of window must scroll.
My problem is that on the dialog, some child controls are also available. When i scroll on the towards, all child windows scroll
-
- Non-alphabetical sorting in VC++ 2005 solution explorer?
by WalleY
- 5 Replies
- Last post
by Ted.
- Is there any option for turning off alphabetical sorting in the 2005 solution explorer I recently upgraded from VS 2003 and was quite used to having folders (filters) in the order I desired, so it's really driving me nuts. (And yes I've tried quite hard to find out how to do it before coming here) If not, are there any plugins out there that serve this purpose Thanks in advance!
-
- CObject array allocation problem
by PopStevo
- 2 Replies
- Last post
by PopStevo
- Hi,
I'm having trouble deallocating an array of classes derived from CObject. After I allocate the array with the new operator and try to deallocate it with the delete operator, an exception is raised and the debugger breaks. After continuing execution, everything works fine.
The whole thing doesn't happen if I run the program by itself, without debug. It only happens in the VS debugger.
-
- fstream include not working
by parreg
- 7 Replies
- Last post
by Carl Daniel
- Hello All,
Using VC++2005 and with the following statement: #include <fstream.h> the following error occurs:
"fatal error C1083: Cannot open include file: 'fstream.h': No such file or directory "
What am I missing here Thanks in advance.
-
- Interlocked issues
by DPotages
- 10 Replies
- Last post
by DPotages
- Hi, I'm working with Vs2003, targeting multiple
platforms and processors (including multicores). I'd like to replace some of the windows'
CriticalSections used in our code for something faster. As using volatile
(especially with 2003) is not very thread safe (no memory barriers, etc), i went for interlocked
operations. Since the code i was suppose to patch was using something that looks like
-
- Isn't this qualifies as bug ?
by Prasad Somwanshi
- 2 Replies
- Last post
by Prasad Somwanshi
- Recently, I posted a issue in connect
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=263278
Actually, I know its work around. And know that, everying before including precompiled header will be ignored by design, too.
But, in given scenario, it seems to be affecting intellisense. Your thoughts please.
-
- resume from hibernate status
by j_a_m_e_s
- 2 Replies
- Last post
by Sarath.
-
I'm using SetWaitableTimer in C++ and I can set the restart from hibernation correctly when the notebook is using the normal electric current but is impossible to restart the system with battery power and electric current off. Any idea
-
- CString to CStringA in unicode character set
by kllatha
- 6 Replies
- Last post
by Giovanni Dicanio
- Hi,
I have a problem converting CString to CStringA . I am using Unicode character set and I want to keep it that way. In my application I have to send ascii data to a device at runtime and to start with I am storing all this ascii data in memory due to some security reasons. I was initially storing them as CStrings and just before sending to the device I was converting them to ascii using
-
- Controls of my dlg do not have XP style.
by Purusothaman A
- 5 Replies
- Last post
by Purusothaman A
- Hi all, Its dialog based MFC application. My problem is, controls in my dialog do not have XP style. But in VC++ IDE's design mode, all buttons, edit boxes have XP style. I hope you understood what I asked, otherwise send me your mail-id I can send dialog's appearance in BMP image format. Thanks. :) Purusothaman A
-
- "volatile" and "memory barriers" MS Documentation Problem
by Hugo6003
- 3 Replies
- Last post
by einaros
- Hi
I and a few others have been trying to get clarity on the issue of volatile and memory barriers.
The original post is here:
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1733803&SiteID=1&mode=1
I am now posting a new question here in the hope we can clear this up.
Basically there are various MSDN articles that claim 'volatile' was enhanced in V
-
- LNK2022 error in Release build; not in Debug build
by ka4016
- 3 Replies
- Last post
by Holger Grund
- When I attempt to make a release build of my project, I receive the LNK2022 error below. However, the debug build of the same project compiles/links just fine. Any ideas See errors below.
Thanks,
Paul Perry
JMSDrivers.obj : error LNK2022: metadata operation failed (8013118D) : Inconsistent layout information in duplicated types (std.basic_string<char,std::char_traits<c
-
- SendKeys in C++
by Fromethius92
- 2 Replies
- Last post
by Bite Qiu - MSFT
- Hello everyone, Is there an equivalent to SendKeys.Send in C++ I have looked into keybd_event and SendInput, but to my knowledge you can only send one key at a time with those functions. Thanks for any help.
Edit: I'm not using the .Net Framework so I can't use any of that stuff.
-
- VS .Net 2005, how to disable intellisense...
by ChandraP
- 14 Replies
- Last post
by Boris Jabes
- Hi I am really frustrated with the performance of VS .Net 2005. This is because I always see at the bottom "updating intellisense..." and it uses 60% to 70% of CPU. How to disable this updating of intellisense... Please this is making Visual studio unusable. Thanks Chandra
-
- Detected memory leaks!
by AlexDav
- 4 Replies
- Last post
by AlexDav
- I have code:
#define _CRTDBG_MAP_ALLOC
#include "stdafx.h"
#include <iostream>
#include <stdlib.h>
#include <crtdbg.h>
int main()
{
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
std::string* str = new std::string( "car mashins" );
return 0;
}
I know that there is memory lea
-
- This application has failed to start because the application configuration is incorrect
by Lord Raoul
- 14 Replies
- Last post
by sephiroth2m
- Hi, I am just starting programming using Visual C++ 2005 Express Edition. I have had some limited practice in other languages and older versions of C++, so I have some idea whats going on but not much... Anyway I made a short program which perfroms a bubble sort on an array of numbers which the user enters (I know its nothing to write home about but its a start), it works fine on my PC and when I
-
- Reading mrt.log file
by mansid
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi,
I am trying to read mrt.log file programatically.
This file is generated after running mrt.exe (malicious software removal tool by microsoft - can be freely downloaded from msdn).
But I am not able to read this file. I am displaying the contents of a file line by line.
It is giving some garbage values.
If I change its extn to .txt, i still cant read it.
If I copy
-
- INTELLISENSE is bad for your health.
by Spurtus
- 14 Replies
- Last post
by vampiretap
- Having read a lot of threads on Intellisense regarding its performance without a clear, definative answer (other than switch it off via some obtuse ways like making the file readonly etc... ).
Anyway I wanted to see if there is anybody ( especially from MS ) brave enough to answer this , or to provide an update of progress and an ETA of a fix . Intellisense is ruining my experience of VS2005 an