Hi all,
in my windows form (Visual C++ 6.0) I'm using an Active x control called "CDTPicker" (CDTPicker : public CWnd). My control is opened up by the click event of another button. like this (works fine):
void CProducerDlg::OnSelect()
{
...
m_wndDatePicker.SetValue(varVariant);
// hide date combo box if first entry has been...
I want to add a simple panel to a dialog created using Visual Studio resource editor, but the resource editor doesn't allow this - I need to add my own CWnd as a dialog child. However that way I think I have to use CWnd::Create manually, and pass in names for the class and the window.
I want to create an ID like IDC_MYPANEL, and as much...
I am wrapping up a class which reading a custom binary data file and makes the data available to a .net/c# class
However a couple of lines down the code, i start getting the memory access violation error which i believe is due to the GC moving memory around, the class is managed
Here's the calling code in C# - reader is mixed code ( m...
I have custom headers in ListCtrl. While it's possible to resize their column width in windows mobile, it's hard to do because you have to hit the line separator exactly and also have to tap, hold and drag as opposed to tap and drag in excel.
Is there anything I can change programmatically to increase the tap area to adjust the column w...
I am targeting windows machines. I need to get access to the pointer to the byte array describing the individual streaming frames from an attached usb webcam. I saw the playcap directshow sample from the windows sdk, but I dont see how to get to raw data, frankly, I don't understand how the video actually gets to the window. Since I d...
img_hsv is a Mat element of an hsv image!
when i give cout<<*img_hsv.data+10; it gives true value of the pixel ie 79 as output.
but when i assign uchar * a=img_hsv.data+10; it gives me some other value...
can you please explain me why is this the case? thanks!
...
Under the visual C++, we have " hash_map" and "hash_set". In g++, we have " stdext::hash_map" and " stdext::hash_set". Is there any difference in terms of their respective performance or other factors?
...
I want to implement a UAC prompt for an application in visualc++ the operating system is 32bit x7460(2processor)
Windowsserver 2008 the exe is myproject.exe through manifest..
Here for testing i wl build the application in Windows XP OS and copy the exe in to system containg the Windowsserver vistamachine
and replace it
So what i did i...
class mystream : public std::stringstream
{
public:
void write_something()
{
this << "something";
}
};
This results in the following two compile errors on VC++10:
error C2297: '<<' : illegal, right operand has type 'const char [10]'
error C2296: '<<' : illegal, left operand has type 'mystream *const '
Judging fro...
I have an existing GUI for Maya plugin written in VC++ (Win32 API). Now Maya 2011 is using QT and I want to change the Button and menu as per the Maya theme. My question is is it possible to make use QT buttons over Win32 GUI?
...
What are the internal features/aspects of C++/ VC++ and MFC that are used for embedded(semiconductor) projects by large IT companies. I ask this becuase I need to be prepared for one such poistion.
please reply.
...
I created ATL COM-server in VC++ 2005. I want to realize some interface defined in some library (*.olb). I know I will see the interface if I #import this olb (in .tlh.tli). But I cannot create stub realization for the interface with "Implement interface wizard" because this interface is absent in "Interfaces" list (both for "Registry" a...
The following .net to native C code does not work, any ideas
extern "C" {
TRADITIONALDLL_API int TestStrRef( __inout char* c) {
int rc = strlen(c);
std::cout << "the input to TestStrRef is: >>" << c << "<<" ;
c = "This is from the C code ";
return rc;
}
}
[DllImport("MyDll.dll", SetLastError = true)]
static ext...
Hello,
I am trying to give my ComboBox an in place tooltip for long strings. However when I call SetWindowPos on the tooltip, the position is never changed. Called when TTN_SHOW is received:
::SetWindowPos(textTooltip, NULL, TipRect.left, TipRect.top, 0, 0, SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER);
If I remove the SWP_NOSIZE flag ...
I'm upgrading a VC++ 6.0 project to VS2010 and I'm getting this error when compiling.
c:\program files (x86)\microsoft visual studio 10.0\vc\atlmfc\include\atlalloc.h(643): error C3861: '_resetstkoflw': identifier not found
Does anyone have any suggestions?
Thanks
...
Hello all.
I'm using VS2010 and in my solution one of my C++/CLI projects references the other. But it can only link correctly when the project being referenced is compiled as a Static Lib.
I read all over that in managed .NET languages, .EXEs, libs and .dlls are the same thing, with a single flag or something like that as difference. ...
How can I convert a Mat element to IplImage * element? Please Help!
...
I made an app built it in debug mode and want to run in on another machine.
There is an error:
the application failed to start because its side-by-side configuration is incorrect
What are possible solutions for that?
I need to have debug version
...
Can Visual C++ 2005 be run in Windows 7 64-bit? I tried installing it, and came up with some problems.
...
Hi, all
My compile environment is windows xp and vc 6.0.
Now I have a c source file(msgRout.c), def file(msgRout.def), link file(msgRout.link), then I use commands below to get a 32 bit dll:
1.cl /I ../include -c -W3 -Gs- -Z7 -Od -nologo -LD -D_X86_=1 -DWIN32 -D_WIN32 -D_MT -D_DLL msgRout.c
2.lib -out:msgRout.lib -def:msgRout.def -ma...