|
I writed an activex in MFC, one of the methods is as follow:
<br />
.odl:<br />
[id(57)] boolean GetOneValueRange(long Address, float* pMinValue, float* pMaxValue);<br />
<br />
.h:<br />
afx_msg BOOL GetOneValueRange(long Address, float FAR* pMinValue, float FAR* pMaxValue);<br />
<br />
.cpp:<br />
BOOL CXXXXCtrl::GetOneValueRange(long Address, float FAR* pMinValue, float FAR* pMaxValue)<br />
{<br />
...<br />
}<br />
I hope this activex can be used in VB and javascript, is there any changes must made?
*(LPWORD)(pStr + lstrlen(pStr)) = ';';
|
|
|
|
|
Is there any way to find out all the code where variables of different types compared inside if() condition like if(fFloatVar == iIntVar)?
It is not listed in warning when compile.
Thanks & Regards,
Suman
|
|
|
|
|
See whether u have set warning level to "None" in ur Project Settings>>C/C++>>Warning Level.
Smile
|
|
|
|
|
I tried compiling in all four levels of warning W1 to W4 and Off(W0) but there is no warning.
Mine Microsoft Visual C++ .NET standard version 7.1
Thanks & Regards,
Suman
|
|
|
|
|
See "#pragma warning" directive if it helps u a bit. I am not sure abt it.
Smile
|
|
|
|
|
Hello all,
Is someone knows how to create a BHO objet for IE in VB.NET ? i have found some code but all are in C# or C++ and i understand anything.
What i want to do is to know where an user save a file or the full path of file in the temporary folders of internet explorer.
I have made a plug in in IE with can catch the HTML Document itself, catch the event NavigateComplete, DownloadComplete, ... ( events and methods of WebBrowser object), but i don't have the information of filename.
Can anyone help me ?
Thanks in advance.
|
|
|
|
|
If you ask it here, again you'll get them in C++. Ask it in VB.net forum.
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
Hi all,
I am new with MS Exchange server. can anybody tell me, which library(software developement kit) i have to use for developing software for microsoft exchage server.
thanks & Ragards
Bankey Khandelwal
|
|
|
|
|
i need to get all the network adpaters details (LAN ,Wireless ,bluetooth ,etc) in the system through mfc code. how to do this pls help me
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
Try GetAdaptersInfo & other functions from IP Helper.
Smile
-Santosh
|
|
|
|
|
I have one small project which is convert avi file to wmv file but it fail's updateprofile method.So
I need to debug this. This file is runnning in the dos mode we have to pass parameters in dos as command line?
can I debug?
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
In your project settings, you can specify a command line that will be supplied to your program when you debug it.
|
|
|
|
|
Cedric Moonen wrote: In your project settings, you can specify a command line that will be supplied to your program when you debug it.
In which option?
Can you please give me some guidline where should I have to change my setting for debuging console application?
Thnak you
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
That depends of the IDE you are using. For VC2005, go into 'Debugging' -> 'Command Arguments'
|
|
|
|
|
When in your first reply I had open it the setting but i haven't got much idea about how to use it?
Means, I had use it and check macro & and click on insert
with adding follwing paramerter but i havent got the idea please can you explain me the detail
debugging.
I have set the follwing
Cedric Moonen wrote: 'Debugging' -> 'Command Argu
$(TargetExt) -i clock.avi -o clock.wmv
but still i havent get the idea to reach at the debugging point.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Sorry, I don't understand what you are trying to do... Can you describe your problem in a clear way ?
amitmistry_petlad wrote: Means, I had use it and check macro & and click on insert
What does that mean ? Why are you speaking about macro ?
amitmistry_petlad wrote: but still i havent get the idea to reach at the debugging point.
What is the debugging point ? Did you try to set a breakpoint in your code (pressing F9) ans start your debugger (press F5) ?
|
|
|
|
|
Cedric Moonen wrote: What does that mean ? Why are you speaking about macro ?
ok!
Actually I was taken you the following .
Like right click on -> project properties -> debugging and select command arguments and click <edit>...
when click on this stage we get one dialog which show the Macro button I have select the .exe from there(Insert button) and add set two parameter which I have wrote in the privious reply.
I had talk about the entire walk through. I have set this two parameter but and set break point also but its not reach at the break point.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
First, I think your arguments are wrong. You want to pass '-i clock.avi -o clock.wmv' and not '$(TargetExt) -i clock.avi -o clock.wmv' I suppose ?
amitmistry_petlad wrote: I have set this two parameter but and set break point also but its not reach at the break point.
IS your project compiled in debug mode ? What happens if you put a brekpoint at the very start of your project (e.g. at the top of the main function) ? Are your breakpoints disabled or not ?
|
|
|
|
|
Thank you ! very much !
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
Project | Settings | Debug | Category - "General" | Program Arguments.
Regards,
Paresh.
|
|
|
|
|
thanks Paresh!
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
amitmistry_petlad wrote: can I debug?
Yes. Just set a breakpoint (F9) on any line you want to stop at.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I have posted a message on the same project but on a different problem. The task is, to load an image file, preferably of any format, jpg or bmp and calculate the FFT of it and also have the option of running thro' a Bessel filter and reconstruct the filtered image.
The problem is, i am new to VC++ and i started studying this Beginning VC++ from Wrox publications, it is useful but very time consuming. I read thro' the chapters and i think i can go about it as of now.
Now, I am actually confused as to what classes i should create and where to create, the book mentioned many things regarding where to create classes and why, which i couldnt get a grasp off. Can any1 tell me how to go about with this project.
Also, regarding my earlier question, i was asking regarding loading jpeg files for processing because, they are in compressed format, one of the guys suggested using CImage class. Please also point out how to go about using it!
I dont know if its too much to ask, but atleast direct me as to how to proceed, would be highly grateful. If this task is too much to start for, then pls suggest me what i can do in the beginning to get a grasp of the code.
PS: I already have the code for FFT and Bessel filter written. Its a matter of writing the GUI and joining them. I have experience working in the console environment alone!
thanks a lot,
cedance.
-cedance
|
|
|
|
|
cedance wrote: where to create classes and why, which i couldnt get a grasp off
If the need for the class functionality is for only once, then you can create an object of the class as local to the function or loop.
But if you want to make use of the same instance many times or in different places or classes then create an object to the class as member to the window/dialog.
cedance wrote: CImage class. Please also point out how to go about using it
You can use CImage or GDI+ Image/Bitmap Class.
Create an instance of any of the above mentuioned class and Load the bitmap of JPEG image and process the image with your written algo.
Do your Duty and Don't expect the Result Rate this Post, if I helped You
|
|
|
|
|
It sounds like you are asking how to design an object-oriented solution to your problem - you know how to program in C, but with this C++ stuff - how should you structure your code, what classes you should design. If this is the case, I'd suggest starting with something simple - I suspect that you will be marked on whether it works rather than on the architecture.
I have only a superficial understanding of the jpeg format, but from memory an image is based around many small pixel blocks (8x8 if I recall). If I am correct, then this sounds like a great little class to write, and an image / file would simply consist of a collection of these blocks. Basically the class would store the pixels, be able to compress / uncompress the data, be able to read / write files and be able to input / output a bitmap. If you wrote this class, say PixelBlock, then the matter of reading a file would be creating and reading in an array of PixelBlocks, displaying on the screen you would simply uncompress each one and convert to a bitmap, you could create a complete bitmap from all the smaller ones, and then apply your filtering, etc... If you allow the size of the pixel block to be a parameter, then the image could be a single pixelblock formed from all the component pixel blocks, you could have your filtering as a member function of the PixelBlock class so you could perform it on blocks or sub-blocks of any size, etc...
Have I given you enough idesa?
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|