|
Hello,
You might want to take a look at this[^]. It is an open source GUI application which does the thing you want to do. Maybe you can join the team or develop your own hybrid.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Anehl wrote: but I don't succeed in using the api
Read the Subversion book, there is information on using its API. There is also further information in the Subversion SVN FAQ.
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.developer.usingapi[^]
If you’re interested in just getting the projects listed in the repository I wonder if it wouldn’t just be easier to connect to the root repository and see what it returns.
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Hi,
I want to create a wizard that as usual in a wizard shows the data from previous pages
in the last page as a kind of summary. And that is not working!
My program is a dialog-based MFC application, so I have a CMyDialog class (main class).
On this main dialog you can make a choice and then push the OK-button. Then the wizard appears.
Its definition is in the OnButtonOK()-function and is as follows (and easy):
<br />
CPropertySheet PropSheet;<br />
<br />
CMyPropPage1 page1;<br />
CMyPropPage2 page2;<br />
CMyPropPage3 page3;<br />
PropSheet.SetWizardMode();<br />
PropSheet.AddPage(&page1);<br />
PropSheet.AddPage(&page2);<br />
PropSheet.AddPage(&page3);<br />
<br />
I CAN store all the data from the pages 1 & 2 into the member variables from my CMyDialog-class, but I can NOT show the data from pages 1 & 2 on page3 of my wizard !!!
How do I do that ???
Please help me, I have already tried so much, but none worked!
Thank you in advance !!!
|
|
|
|
|
Have you tried this?
CMyPropertyPage *page1=(CMyPropertyPage*)((CPropertySheet *)(GetParent())->GetPage(1));
Do remember to call UpdateData(), while handling OnNext of page.
|
|
|
|
|
You'll need to derive a class from CPropertySheet , and store the information in it. Then in each page, just call GetParent() to access the information.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
hi david,
actually i am also facing the same problem. please proivide me a solution if you have. pls help me out for this solution.
thanks,
uday.
uday kiran
|
|
|
|
|
kiran janaswamy wrote: please proivide me a solution if you have.
What's wrong with this?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
PSM_QUERYSIBLINGS[^]
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
hi,
I want to generate random numbers in c++ (using vc++ 6.0) on hit of enter. I am using _kbhit(), but don't know how to reset it, so that I can use it again, can anybody help me with this.
code is say like following.
#include <iostream>
#include <conio.h>
#include <windows.h>
using namespace::std;
int main(int argc, char* argv[])
{
for(int i=0; i<10; i++)
{
cout << "hit enter to generate random number" << endl;
int ran1 = func1();
cout << "hit enter to generate random number" << endl;
int ran2 = func2();
}
return 0;
}
int func1()
{
int ret;
while(!_kbhit())
{
ret = rand()%10;
Sleep(1000);
}
return ret;
}
int func2()
{
int ret;
while(!_kbhit())
{
ret = rand()%20;
Sleep(1000);
}
return ret;
}
There is another problem with I/O exception handling:
i tried to read an int correctly using following code. but in case of exception it is caught but cin doesn't execute inspite of clearing it:
int main(int argc, char* argv[])
{
int i;
bool check = false;
cin.exceptions(ios_base::failbit);
while(!check)
{
try{
cout << "enter a number: ";
cin >> i;
check = true;
}catch(ios_base::failure){
cin.clear();
}
}
return 0;
}
Thanks,
vikas
|
|
|
|
|
To reset kbhit() you must read the character.
if( kbhit() ) getch();
We used to have to do key debouncing like so:
while( kbhit() ) getch();
INTP
Every thing is relative...
|
|
|
|
|
Are there any API's or macros that allow us to add a new device or uninstall it through our program... in MFC? if not.. then how does the ADD/Remove harware wizard in control panel work? Thks
|
|
|
|
|
Hey wsup y`all? am currently working on a university project invovling the design of a fully automated lathe machine. the hardware part and machine design is easy and done....now the only problem is designing the software to control the machine using the parallel port. the program,should have a simulation of the movement of the machine tip controled by stepper motors.any person good with 3d programming can help me a lot.halla back if your interested in the challenge of designing the software..
|
|
|
|
|
I have worked on hardware interface projects
but will like to know details of ur project
first , then only i can help.
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
Dear MFCExperts,
I have a dialog bar with icon moving on it. I use OnContextMenu Message to invoke a Menu for adding the icons. Now I want the delete some of icons.These icons are stored in a array. When I press key 'D', I want one of these icons to get deleted. I tried the OnChar message. But effect is not happening. The following the body of OnChar
Any suggestions Please,
void CTBMap::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
// TODO: Add your message handler code here and/or call default
switch(nChar)
{
case VK_DELETE:
m_pMarkers->m_ItemIndex--;
InvalidateRect(NULL,TRUE);
break;
default:
break;
}
CDialogBar::OnChar(nChar, nRepCnt, nFlags);
}
Thanks in advance
-- Manohar
Research Student.
IISc, Bangalore. India
http://ssl.serc.iisc.ernet.in/~manohar/
|
|
|
|
|
I get the following compile warning:-
c:\TestProg\SigData.h(3625): warning C4146: unary minus operator applied to unsigned type, result still unsigned.
I am assigning the value -2147483648 to an int field in a structure.
Thanks.
|
|
|
|
|
could you show the code that's crashing please ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Sorry its just a compiler Warning, but was trying to get rid of it.
I have a structure:-
typedef struct <br />
{<br />
char scaling [SCALE_LENGTH];<br />
char format [FORMAT_LEN];<br />
char dataRaw [DATA_LEN];<br />
char dataEng [DATA_LEN];<br />
char display1 [DISPLAY_LEN];<br />
int base;<br />
int offset;<br />
int mask;<br />
int wordSize;<br />
int shift;<br />
int noFieldsBefore;<br />
int noFieldsAfter;<br />
double maximum;<br />
double minimum;<br />
double fullScale;<br />
}SIGNAL_DETAILS;<br />
<br />
And init:-<br />
<br />
SIGNAL_DETAILS signal_details[NO_FIELDS] = {<br />
"1",
"Integer",
"0",
"0",
"%04X",
382,
0,
-2147483648, <br />
32,
0,
0,
3,
255.000000 ,
0.000000 ,
255.000000 ,
,<br />
etc.
Its the Initialisation of mask to -2147483648 that causes the problem.
|
|
|
|
|
why you are assigning value to an int,which falls out of its range?
|
|
|
|
|
it is not out of range, it is exactly the lower bound of a 32-bits signed int :
2^32 = 4294967296
(2^32)/2 = 2147483648
so, signed int contains values into [-2147483648 ; +2147483647]
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
oops ! my mistake.
just careless reading.
|
|
|
|
|
How about :
{
char scaling [SCALE_LENGTH];
char format [FORMAT_LEN];
char dataRaw [DATA_LEN];
char dataEng [DATA_LEN];
char display1 [DISPLAY_LEN];
int base;
int offset;
signed int mask;
int wordSize;
int shift;
int noFieldsBefore;
int noFieldsAfter;
double maximum;
double minimum;
double fullScale;
}SIGNAL_DETAILS;
~RaGE();
|
|
|
|
|
Still the same compiler warning.
|
|
|
|
|
ok, i've got it... just have a look at the MSDN[^] :
Practically, this occurs when the programmer is trying to express the minimum integer value, which is -2147483648. This value cannot be written as -2147483648 because the expression is processed in two stages:
1. The number 2147483648 is evaluated. Because it is greater than the maximum integer value of 2147483647, the type of 2147483648 is not int, but unsigned int.
2. Unary minus is applied to the value, with an unsigned result, which also happens to be 2147483648.
ah, that was so simple
just use INT_MIN instead of hard coding the value and don't forget to #include<limits.h>...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I tried 0x8000000 and it worked OK.
But thanks for your post.
|
|
|
|
|
What compiler are you using? Are you building for Win32?
'int' is per definition signed and the range of the type is –2,147,483,648 to 2,147,483,647 in a 32-bit environment.
What happens if you change the radix of the value to hex and assign 0x80000000?
(Since this looks like a bit mask perhaps this is preferred anyway...)
--
Roger
It's supposed to be hard, otherwise anybody could do it!
|
|
|
|