|
Hi,
unfortunately I have to reserve a large amount of global virtual memory because virtual memory (either physical or in page file) is a shared, limited resource. The article about the heap should fit but I still do not undestand how to use STL::new and malloc without making custom allocation classes.
So the problem is still open...
regards,
Andrea
|
|
|
|
|
For a potentially unicoded application.
I use the alias "MS Shell Dlg" font in my application; I believe this is a proportional font.
Is there an equivalent for a fixed sized font ? does Courier ( Courier New ) fit what I'm looking for ?
Or Am I completly off the subject ?
Thanks.
Max.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
this is very important (fatal) for me. I think you can help me.
I need code of a Scentefic Calculator with C++ or VC++
that can draw functions like (y=sin(x)) and so on.
If you can give me an address or guidance.
Thank you very much again and again.
TA RedStar
|
|
|
|
|
certainly...
do you want it by e-mail, by postal mailing, drawn on a wing of a paper plane, or do you want me to send it to you with a carrier pigeon ???
man, forum are not stores for full designed applications... we're are not here to do the job the teacher excpects you to do. we are just here to HELP you making your project complete on the point you cannot reach by yourself...
moreover, there are several of good graphical calculators on CP ; i doubt you search for that first (see here[^] for more)...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I need help in drawing section for exp how ishoud draw sin(x)
and textbox that can be edited but when i refer to it it readed as string
i know vb but ihavn't enough time to neccessery cnversion
TA RedStar
|
|
|
|
|
TA-RS wrote:
Scentefic Calculator
a calculator that smells ?
anyway ... where are you exactly in your project ?
Do you have problems with the UI ? the calculation part ? or the graph drawing functions ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I'm very rusty, but I can't find any function on MSDN about returning a date. Can anyone help me?
|
|
|
|
|
Camron wrote:
...I can't find any function on MSDN about returning a date.
That does not stand for Microsoft Singles Dating Network!
Have you tried time() ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
|
Time Functions[^]
time, _time64[^]
(you need to look up "time" for date functions. kind of like pressing "start" to shutdown... )
- Indivara
"...This city desert makes you feel so cold.
It's got so many people but it's got no soul..."
- Gerry Rafferty, Baker Street
|
|
|
|
|
in doc/view structure, how to load a bitmap file and display in a desired position in the view?
Thanx
|
|
|
|
|
hi all
In PreTranslatedMessage() when recv WM_RBUTTONDOWN i open dialog but when im closing it... it crash the whole program why is that happen ?
source:
<br />
BOOL CMFCTestDlg::PreTranslateMessage(MSG * pMsg)<br />
{<br />
switch(pMsg->message)<br />
{<br />
case WM_RBUTTONDOWN:<br />
{<br />
CSniff.DoModal();<br />
}<br />
<br />
return 0;
}<br />
tnx you all...
|
|
|
|
|
I'm not sure exactly what it is that you are trying to do, but with few exceptions, PreTranslateMessage() is not the place to be doing it.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
hi tnx you for answer, well iam trying to load Popup menu on right click of mouse. if i use OnRButtonDown(...) it wont open in one click u need to click 2 time then it open but that i dont want. In PreTranslatedMessage it open in first time but then when click that popup menu it open dialog and when closing it it crash all. OK if u say that isnt the right way will check for other thanks you.
One more thing... that OnRButtonDown(...) when i click with mouse in CList array that List view it dont perceives that i have clicket there it perceives only if i clicked in main dialog.
|
|
|
|
|
majeric wrote:
hi tnx you for answer, well iam trying to load Popup menu on right click of mouse.
This is a very common thing to do. Look for examples using TrackPopupMenu() .
majeric wrote:
when i click with mouse in CList array...
A CList is simply a collection of objects and thus does not have an interface in which you can click. Perhaps you meant a CListView ?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
What does this line mean
if (((msg->eventType-FRAME_EVENT)>>12 & 0xf )==0)
eventType could be say 0xA002
and FRAME_EVENT is 0xA000
in partiualr I dont know what >> means.
Sorry to be thick.
|
|
|
|
|
It is four statements in one.
msg->eventType-FRAME_EVENT This subtracts FRAME_EVENT from msg->eventType .
>>12 This shifts the bits from the above sum to the right 12 places.
& 0xf This is the bitwise AND operator. 0xf is 15 in base-10.
==0 This compares the result of the above AND operation to 0.
Does that help?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Cheers, thats bang on, it was the bit shift I wasnt sure of
|
|
|
|
|
Hi,
I have to use a MFC C++ DLL (unmanaged of course) in a C++ .Net project.
I have problems to do that. I've created a C++ .Net project and includes the MFC DLL.
My problems comes as soon as I call a method (ctor, dtor or method) from the MFC DLL.
I've got this kind of error :
error LNK2001: unresolved external symbol "public: __thiscall toto::toto(void)" (??0toto@@$$FQAE@XZ)
fatal error LNK1120: 2 unresolved externals
toto is the unmanaged class from the MFC DLL.
I call it in the C++ .Net class like this :
toto *p;
p = new toto();
(the first line compile but not the second)
Thanks,
Denis (denissohet AT hotmail DOT com
|
|
|
|
|
hi,
i know i'm a bit off topic, but i cannot understand why so many people try to use managed code in unmanaged projects (and vice versa)...
i consider .NET has been designed to be portable, that means the code don't depend on the system it is running on, but uses only functions from the framework.
so, any explainations ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I need to use in .Net code old MFC DLL...
I don't want to re-write the DLL in .Net, it will take too much time! And in my company we have a lot of MFC DLL we use !
|
|
|
|
|
and what will happend when one of your customers will try your code on a MAC which have .NET framework installed ??
nothing. it will just not execute...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Not a problem, this soft is for pc configured by the company and we install everythink we need!
Please, help me or don't write ...
thks
|
|
|
|
|
I have embedded an swf file into a C++?MFC dialog. Everything is great, except that the program uses a massive amount of memory that builds up over time.
I have discovered that this problem exists if the swf is played in IE as well.
The Flash.ocx seems to decode/decompress every frame that is displayed as it comes, then never discards the old frames from memory.
I would love to be able to discard the old frames, and I believe it is possible, because a product called Zinc/FlashStudio Pro is able to do this flawlessly [url]http://www.multidmedia.com/software/zinc/[/url]
Does anyone have any suggestions for doing this?
My game's RAM consumption hits critical levels after about an hour of use.
|
|
|
|
|
How to write socket and database programs in vc++ using MFC
can you give good source web sites for writing socket and database programs
thanks
prabhakar
|
|
|
|