|
Hello,
I cannot find IACLCustomMRU in any header.
Same thing for associated constant : IID_IACLCustomMRU
Thanks in advance.
|
|
|
|
|
|
Find what ?!
There is nothing in MSDN doc about declarations, include files, IID_IACLCustomMRU
constant, etc ...
|
|
|
|
|
I guess you need to ask Microsoft.
Use the best guess
|
|
|
|
|
hello every body:
i made some java courses last years , i found that i can make a GUI by includeing some library , like import " javax.swing "
anyway this is just in java, i want to ask is there anything like that in C++ , as java is close to C++,
if there is i want to tell me how to do something like that i visual studio ,and if you know some resource i will be happy if you share it ,
thanks
|
|
|
|
|
OmarSH wrote: ...as java is close to C++... They are similar in syntax only, nothing else.
OmarSH wrote: if there is i want to tell me how to do something like that i visual studio If you have VS installed, just click the Create button. In the "New Project" dialog, select something under Visual C++ like MFC or Win32.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Pure C++ does not support creating GUIs.
C++ is meant for creating optimized, reusable libraries.
However, you can use some frameworks or libraries that are based on C++ like MFC as David mentioned.
This would, however, be OS dependent.
Some libraries like QT[^] provide source code compatibility between OSs where you write code once and build the same code on different environments.
|
|
|
|
|
«_Superman_» wrote: Pure C++ does not support creating GUIs.
C++ is meant for creating optimized, reusable libraries.
Really? I wonder how I've neen doing it all these years then?
Use the best guess
|
|
|
|
|
Richard MacCutchan wrote: Really? I wonder how I've neen doing it all these years then?
might be late!!... you might be writing executable in disguise of library
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi, I placed bitmap file and source code in same folder.
I use:
hBitmap = SHLoadDIBitmap(_T(".\zzz01.bmp"));
try to load the bit map, but it can't load it.
|
|
|
|
|
That's probably because the executable program does not get written to the same folder as the source code. Your bitmap should be copied to the Debug or Release folder in the solution directory.
Use the best guess
|
|
|
|
|
econy wrote:
hBitmap = SHLoadDIBitmap(_T(".\zzz01.bmp")); You are using a relative path. If you just want to find out if your "load" code works, use an absolute path instead. If that works, then you can study the difference between the two.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
try using absolute path by using API GetModuleFileNameW
WCHAR path[MAX_PATH];
GetModuleFileNameW(NULL, path, MAX_PATH);
this will return you the path to your executable, you have to strip filename from this and replace it with your bitmap
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi,
I am working on a project in which I am using DirectX to play , pause or stop videos.
Video display is fine on windows XP, windows 7.....But when I run my application and play the same video on Windows 8 machine, video display gets corrupted.....The whole video turns greyish.
The screen doesn't display any other color except grey.
Anybody have any idea about this issue.?
Any help will be appreciated.
Regards,
Mbatra
|
|
|
|
|
It's hard to guess based on the little information you have provided, but it is possible the graphics card/driver does not support the particular pixel format (YUY2, UYVY, etc.) your program is trying to use.
Check in the code where the primary surface is being created and see which pixel format is being used.
This was something we had problems with 10 years ago, but I imagine you could run into it with Windows 8 since that is still fairly new and some drivers might need more work.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
Hi,
First all I want to thank all for the help with exception resulting from the CWnd::SendWIndow
seemed it had a errorous pointer as in the lparam
my_event->buffer_ptr
I have done research on the Streamin Call Back function of rich edit but I haven't gotten it to work
I am trying to read into my RichEdit a MainFrame Assembler program Listing
I have a few questions
1) how do you terminate the callback the doc says set *pcb = 0; I did that call back function was still called after that
2) to set things on separate lines I add carriage return '/r' line feed '/n' at the end of each line is this correct
3) How does the framework set (or can I set the value of cb) number of bytes to read
Thanks
|
|
|
|
|
It would help if you showed your actual code, as it's difficult to visualise exactly what you are doing. As to Q3, the documentation[^] implies that the framework sets the value of cb and the callback should transfer a mximum of that many bytes.
Use the best guess
|
|
|
|
|
static DWORD CALLBACK readlisting(
DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG FAR *pcb )
{
UNREFERENCED_PARAMETER(cb);
static BOOL flag = 0;
int length;
CString buffer;
LPBYTE holdptr1;
int n;
CStdioFile* pFile = (CStdioFile*) dwCookie;
switch (flag)
{
case 0:
flag = 1;
do {
pFile->ReadString(buffer);
} while(buffer.Find((LPCTSTR)"CSECT") == -1);
length = buffer.GetLength();
strcpy((char *) pbBuff,(char *)buffer.GetBuffer(length));
holdptr1 = pbBuff + length;
memcpy(holdptr1,"\r\n",2);
*pcb = length;
return 0;
break;
case 1:
while(TRUE)
{
pFile->ReadString(buffer);
length = buffer.GetLength();
if(buffer.Find((LPCTSTR)"END") > 0)
{
*pcb = 0; return 0; }
if(buffer.Find((LPCTSTR) " ") < 2 || buffer.Find((LPCTSTR) " ")
==7) {
memset(pbBuff,0x20,135);
strcpy((char *)pbBuff," ");
holdptr1 = pbBuff + 2;
memcpy(holdptr1,buffer.GetBuffer(length),length);
holdptr1 = holdptr1 + length;
memcpy(holdptr1,"\r\n",2);
*pcb = length + 2;
return 0;
}
else
{
n = buffer.Find((LPCTSTR) " ");
memset(pbBuff,0x20,135);
strcpy((char *)pbBuff,"_ ");
holdptr1 = pbBuff + 2;
memcpy(holdptr1,buffer.GetBuffer
(length),length); holdptr1 = holdptr1 + length;
memcpy(holdptr1,"\r\n",2);
*pcb = length + 2;
return 0;
}
}
}
return 0;
}
|
|
|
|
|
Apart from:
memcpy(holdptr1,"\r\n",2);
*pcb = length;
I cannot see anything incorrect in your code. However, you should be checking that you do not transfer more than cb bytes at each call; currently your code does not do that.
Are you sure that it gets to the point where it sets *pcb = 0; ?
Use the best guess
|
|
|
|
|
|
Some other issues I noticed from reviewing the above:
- You are mixing
strcpy() and memcpy() calls. This will cause problems if you want to convert this to Unicode in the future. - Similarly you are using a
LPBYTE pointer instead of LPTSTR . Your code is manipulating characters so all pointers should be character types, not byte. - In the second
case clause, in both blocks you are prepending two characters to the buffer, but you are not adding two to the *pcb value to take account of this. - In the same place, you are using
memset() to initialise the buffer with 135 spaces. This serves no purpose, but to waste time and code.
Whether fixing the above gets you closer to a solution, only time will tell.
Use the best guess
|
|
|
|
|
Forgot the WS_VISIBLE style in my resource file sorry for wasting your time ill make the changes you
Pointed out
Thanks
|
|
|
|
|
I don't see how that has anything to do with either your original question, or the code you posted.
Use the best guess
|
|
|
|
|
|
If you own the book, why not just type the code in? Copy/paste bulk code is a sure fire way to not learn something.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|