|
Are you sure you have vector file in your computer
From the MSDN:
<br />
Fatal Error C1083<br />
Cannot open filetype file: 'file': message
|
|
|
|
|
hey all,
I am using CNTGraph class that was found in the codeproject website.
I can plot a graph that I want.
But there are 2things I want to do:
1. I want to replot the graph everytime I recieve a new set of data points.
How do I do it? Is there a 'clear' or 'delete graph points' function that can be used to clear the previous plotted points before a new set of data is plotted.
2.Also, how do I set the scale on X-axis and Yaxis?
say, I want the scale of the X-axis in terms of 2units.ie., X-axis range (I use SetRange()) is (0,10). but the scale has to be like 0 2 4 6 8 10? Is there a function to do this?
Can anyone help me?
|
|
|
|
|
thathvamsi wrote: Can anyone help me?
Ask on the forum at the bottom of the articles, you'll perhaps have an answer from the author.
|
|
|
|
|
Hello...
I already had create hex editor program using visual c++.the problem is i dont know how to save my word which i'm edit through editbox control to hex editor file before...can u give some example code that can help me..to develop this program.
krie junior
|
|
|
|
|
krie wrote: i dont know how to save my word...
To where/what?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Is it possible to call a constructor without an existing object?
Class A
{
int b;
A(){b=0;}
}
From the class above when i call the constructor without an object of type A, the compiler does not complain even if there is no space for the variable "b" yet..
Moreover it is also possible to write a line of code like the one below:
const A & ref=A(); //without calling new A();
Is it all about something special to .NET 2003
Thanks in advance..
|
|
|
|
|
quantum17 wrote: From the class above when i call the constructor without an object of type A
How are you doing this ? If you mean doing this:
A Test = A();
Then this line actually creates an instance of the class.
quantum17 wrote: const A & ref=A(); //without calling new A();
The same here.
It's not because you don't create your object dynamically (with new) that your constructor is not called. It's called in BOTH cases.
|
|
|
|
|
Writing A() means "create a new object of type A and call its default constructor". Note that this:
const A& ref=A(); is wrong because the A object is destructed once the statement is executed, so the reference is no longer valid.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
I have created a tiff file from using CxImage. I have DivaServer card which is capable of sending fax from one system to another system using phone connections. Its documentation has a sample which sends fax when we giving it a tiff file.
We can create a tiff file through our windows print dialog which is displyed when we click on menu file->print and check the check box "Print to file" and press print button.
And i can also create a tiff file now using CxImage class.
The problem i am facing now is the sample is sending and receiving the tiff file creted from file->print--"print to file" option correctly. But tiff file created from CxImage is not being sent and received correctly. Sample is showing a log "ERROR"&"ABORTED".
All I can findout is the formats of the two tiff files are different from ont another.How to resolve this. I want my tiff file generated like this or from any other source is to be sent and received correctly.
If anybody have any idea or suggesion please help me.
KIRAN PINJARLA
|
|
|
|
|
|
Thank You for your reply.
I will go through it.
KIRAN PINJARLA
|
|
|
|
|
Hello.
There must be a lot of better documentation than the one I found in a hurry.
Google for G3 G4 fax
IMO, it just can't be too hard to create a tiff file that comforms to one of the fax standards. After all, it's just a tiff file. Good luck!
|
|
|
|
|
Hi All,
I want the click & see function in my dictionary like the Babylon.
That means when users click on a text in opened .doc, htm... files,
the search result will be shown.
How I can get text when click on it like Babylon?
Any suggetion or source code about this?
Thanks
Nicol Nghia
|
|
|
|
|
NicolNghia wrote: How I can get text when click on it
Have you heard about Setting up hooks?
Set up a hook for WH_MOUSE events. Whenever the user double clicks on the mouse you need to trap the event and read the text that lies under the mouse cursor.
This could very well be one of the most generalized ideas that you can use to proceed with the building of this type of application.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
NicolNghia wrote: How I can get text when click on it like Babylon
in Babylon, it take a image of the text under the mouse and convert it into text using by OCR method. I will be a little harder to make an OCR. but try ..
nave
|
|
|
|
|
ok the msdn library don t help me so mutch i need an example on how to find an item and subitems in CListCtrl from CEdit ! And when is find it i whant the list to be scrolled to see the rezults and the rezults must be fill in another CEdit !
Thank you ! and good luck in the future ! ... to all !
Bravoone
|
|
|
|
|
Did you see msdn its loop for finditem now what do you need?
|
|
|
|
|
Where in msdn i don t find the example ! ?
Bravoone
|
|
|
|
|
|
no,no,no the documentation msdn library doesn t help me so mutch because what is there i have just done , what i need is something else a more detailed structure for this : FindItem or CListCtrl ,examples included for me to see how its works ! and if i want this in my project ! you understand me now ? all i want is to search from a CEdit in CListCtrl (Report view) for items and subitems and the rezult must be fill in another CEdit !
WhiteSky ... maybe you don t understand me i don t know so mutch code and i need some help if is someone in this world who want to help me! ok i will be gone from this site if you tell me : nobody want to help you ! ok i will wait your answer !
Bravoone
|
|
|
|
|
//i write this example for you i hope its helpful for you
//in this example we have a CEdit and in this control we have a string(test) now we want to search this item in listctrl first we get this string from Editbox//and set it find1.psz = str22; in the loop we have a search and return value to index and convert(itoa) for show location these items in this list 0,3,6 and you get a -1 when it doesnt find any items//instead messagebox you can insert this value to another editbox
-----------------------------------------------
<br />
USES_CONVERSION;<br />
CEdit m_Edit;<br />
CString str22;<br />
TCHAR buffer[100];<br />
LVFINDINFO find1={0};<br />
<br />
m_Ctrl1.InsertItem(0,"test");<br />
m_Ctrl1.InsertItem(1,"test1");<br />
m_Ctrl1.InsertItem(0,"a"); <br />
m_Ctrl1.InsertItem(0,"b"); <br />
m_Ctrl1.InsertItem(0,"test"); <br />
m_Ctrl1.InsertItem(0,"a1"); <br />
m_Ctrl1.InsertItem(0,"b1"); <br />
m_Ctrl1.InsertItem(0,"test"); <br />
<br />
m_Edit.Create(WS_CHILD|WS_VISIBLE,CRect(0,0,100,23),this,1);<br />
m_Edit.SetWindowText("test");<br />
m_Edit.GetWindowText(str22);<br />
int index=-1;<br />
<br />
<br />
find1.psz = str22;<br />
find1.flags = LVFI_STRING;<br />
do<br />
{<br />
index=m_Ctrl1.FindItem(&find1,index);<br />
MessageBox(itoa(index,buffer,10));<br />
<br />
}while(index!=-1);<br />
<br />
|
|
|
|
|
Thank you so mutch for your help , now i will try to see ...
Thanks !!!!!!!!!!!!!!!!!
Bravoone
|
|
|
|
|
ok i am very close - its working but i have one more problem to rezolv : with | LVFI_PARTIAL | works but i have subItems very close to the search for ex : i search "6021" my list include this : 6000,6001,6002,6003...6021 and the answer he given to me is :"6000"
i have tried with |LVFI_STRING| but is not find anyting because i have spaces in my database (visual fox 6.0.) and i don t now wath to do its someone how have an ideea ?!
Thank you WhiteSky for your help !!!! Thank you !!!!!!!!!!!!!!!!!!!!!!
Please help !
Bravoone
|
|
|
|
|
Flaviu_2006 wrote: ...because i have spaces in my database...
So why don't you remove the spaces prior to adding the items to the list control?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You can remove space from your string then insert to listctrl
|
|
|
|