|
Is the problem that mwAarray could possibly be misspelled? Should it be mwArray?
That is probably your problem I think although I am not sure if mwArray is a compatible type with mxArray_tag. All of your problems seem to be stemming from a misspelled var type though.
~LizardWiz()
|
|
|
|
|
2 problems are obvious:
mwAarray is not declared. looks misspelled to me
also, the function you are using needs a variable of type mxArray** instead of mwArray** which you are sending.
It also returns mxArray* instead of mwArray* which you are trying to stuff the return into.
|
|
|
|
|
Hi guys,
I hope this is not difficult to do. How do I make the widths of columns in a list control (Report view) fixed? Which the users cannot change them (no change width type of cursor).
Thanks in advance
and Merry Christmas everyone
|
|
|
|
|
Check out CodeProject code section.
http://codeproject.com/listctrl/headerctrl.asp
Kuphryn
|
|
|
|
|
How do I get page breaks to print correctly in CEditView? I checked to Wordpad example but can't find the code that does the work.
Thanks
Kevin
|
|
|
|
|
While Printing by MFC you have to do the Pagination by urself
i.e. Override OnPrepareDC or OnBeginPrinting and set the no of pages stuff
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
I got that far. I was trying to see how it was done in the Wordpad example. At this point I believe it has to do with using the RichEditCtrl as opposed to CEditView.
|
|
|
|
|
Hi everyone! I have a question regarding HPTestExec and C++. My task is to create an action to be executed in HPTestExec, this action will call the C++ code. I would need to write C++ code to call up Windows Media Player. To do it programmatically, I would need to download and install the Microsoft DirectX SDK and write code using this API. Does anyone have suggestions on how I would go about doing that? Or would there be a simpler way of achieving it? Thanks for your time.
|
|
|
|
|
You could instantiate the Windows Media Player ActiveX Control if ur design allows it , it should be simple enough or you just have to use C++ code in that case u r stuck with SDK
Live as if your were to die tomorrow. Learn as if you were to live forever.
-Mahatma Gandhi
|
|
|
|
|
Hi!
In my application I have to convert several normal one-byte ascii strings to unicode strings.
I do this like follows:
lptTitle = A2W(ptrTitle);
lptURL = A2W(ptrURL);
lptUserName = A2W(ptrUserName);
lptPassword = A2W(ptrPassword);
lptAdditional = A2W(ptrAdditional); All variables prefixed with lpt are of type LPTSTR and all prefixed with ptr are of type CHAR*.
A2W is defined as:
#define A2W(lpa) ( ((LPCSTR)lpa == NULL) ? NULL : ( _convert = (lstrlenA(lpa)+1), ATLA2WHELPER((LPWSTR) alloca(_convert*2), lpa, _convert)))
Now my question: the A2W macro allocates memory, but when does it free it??? Doesn't this macro result in memory leaks??
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
MSDN
_alloca allocates size bytes from the program stack. The allocated space is automatically freed when the calling function exits (not when the allocation merely passes out of scope). Therefore, do not pass the pointer value returned by _alloca as an argument to free.
Thank You
Bo Hunter
This is what Heath Stewart thinks about Certifications.
Heath Stewart said
"Personally, I am not certified because I really don't want to be. I know a large number of people with certifications that know crap. They studied for the tests, memorized a few things, took the tests (sometimes a couple times) and got their certs. They're still idiots."
|
|
|
|
|
Wonderful, thank you!
Can I use the A2W and W2A macros more than one time in my function? Like in my example?
[EDIT]Ok, no more a problem. I've solved it another way.[/EDIT]
Thanks for your reply!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Using A2W and the other conversion routines are perfectly fine for a handfull of strings in a routine. Once the routine returns, the memory is freed by the magic of the stack.
Where you can have problems is if the strings are very long (i.e. 32k each) or if you do a lot of them such as in a loop.
for (i = 0; i < 189519029; i++) psz = A2W (psz2);
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I have CD that contains Platform SDK, I installed the core SDK from that CD, but there is no reference to WTL, ATL in the CD.... Does any one know where in the CD or under which opetion i will find the above things.
regards./
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
|
Thanx again Micheal, i have visual studio installed and i have ATL and also downloaded WTL from MS and installed it.
But i heard that there are different versions of ATL (not sure of WTL) how do i get the latest ATL? Any idea about the latest version no of ATL?
My God is more powerfull Than Your God. (the line that divides the world)
|
|
|
|
|
As far as I know, you can't. You use the version of ATL you get with the compiler.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
I am creating an MFC application using libraries without the source. The libraries write out information to stderr and stdout and I'd like to grab the information and display it in my MFC application.
Can anybody help?
Thanks
|
|
|
|
|
I have downloaded the Quake engine source code. To my surprise, I
could not find the main() method. So I wonder Why commercial
software does not have main()? Is it in the Windows?
In the case of Java Applet, the main() method is in the browser, so
I guess the reason why the Quake engine source code does not have
main() is because the main() is in the Windows. Did I guess wrong?
Does all the commercial software not having main()? or just some
of the specific software?
|
|
|
|
|
|
There are lots of files with lots of different names. I guess the main
file is called q_main.c
But still can not find any WinMain() or other main() method in the file.
Any ideas?
|
|
|
|
|
I am a newer in this ;Pboard, so I want to enjoy the big family!
|
|
|
|
|
Welcome to the big family, merry Christmas.
|
|
|
|
|
I don't know how to use it. I need to prevent static DB objects used simultaneously..
|
|
|
|
|
We are using the cad library for developing the Auto cad application.We are in need to read the Dxf file using your library.Just explain how to read the dxf file.
Never let anything go for granted. <>
|
|
|
|