473,503 Members | 2,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

integer to string

Hi All,

I think it should be very easy, but I am new to c++.net ( original is
c# / vb )

I need something like:

..ToString()

or

val( string_B )

another question, in c# it is clear to enter code after double click
the compnents, how about C++ ? is that the same ? because I saw IDE
shows .h file... not a .c file after double click a component ( ex:
text box )

Thanks.

/*************** CODE BEGIN **********/
private: System::Void button1_Click(System::Object^ sender,
System::EventArgs^ e) {
CultureInfo^ myCI = gcnew CultureInfo( "en-US" );
Calendar^ myCal = myCI->Calendar;

// Gets the DTFI properties required by GetWeekOfYear.
CalendarWeekRule myCWR = myCI->DateTimeFormat->CalendarWeekRule;
DayOfWeek myFirstDOW = myCI->DateTimeFormat->FirstDayOfWeek;

this->textBox1->Text = myCal->GetWeekOfYear( DateTime::Now, myCWR,
myFirstDOW ) ;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^

};
/************* CODE END ************/

Best regards,
Boki.
Apr 7 '08 #1
4 1068
>by the way, I can't find out the execution file after build it...., I
>didn't see the "Release" folder and there is no .exe file in debug
folder.
Has it built successfully? Where does the build log indicate it's put
it?

Dave
Apr 7 '08 #2
by the way, I can't find out the execution file after build it...., I
didn't see the "Release" folder and there is no .exe file in debug
folder.

Look in <solution root>\debug instead of <project root>\bin\release
I found that, I didn't change "Debug" to "Release"

It looks if I build in "Debug", there will be no .exe file.

thanks.

Boki.
Apr 8 '08 #3
Boki wrote:
>>by the way, I can't find out the execution file after build it....,
I didn't see the "Release" folder and there is no .exe file in debug
folder.

Look in <solution root>\debug instead of <project root>\bin\release

I found that, I didn't change "Debug" to "Release"

It looks if I build in "Debug", there will be no .exe file.
No, the *directory* is in a different location from where the C# compiler
puts things. Sorry about conflating debug and release. Here is a more
accurate instruction:

Look in <solution root>\debug instead of <project root>\bin\debug
Look in <solution root>\release instead of <project root>\bin\release
>
thanks.

Boki.

Apr 8 '08 #4
Look in <solution root>\debug instead of <project root>\bin\debug
Look in <solution root>\release instead of <project root>\bin\release

Thanks.

Boki.

Apr 9 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
27542
by: news.hku.hk | last post by:
could you tell me how can i convet a string to integer?? #include <iostream> #include <string> using namespace std; int main(){ int integer; string buffer("123456789");
7
3799
by: Sashi | last post by:
Two questions: (1) I can pull the text of an XML element as a string just fine using code as such: strSomeString = myXmlDoc.SelectSingleNode("/Element1/Element2/Element3",...
2
7194
by: Jim in Arizona | last post by:
I'm learning form an ASP.NET 1.0 book and I tried out some code that returns this error: Compiler Error Message: BC30311: Value of type 'Integer' cannot be converted to...
5
2859
by: Barry | last post by:
Hello, In VS2003, I tried using an enum and setting it into a field in a datarow. It seems as if the datatype of the field in the row determined what went into the field. If the datatype was...
11
1813
by: nephish | last post by:
Hello there, i need a way to check to see if a certain value can be an integer. I have looked at is int(), but what is comming out is a string that may be an integer. i mean, it will be formatted...
6
6983
by: comp.lang.php | last post by:
I'm involved in a rather nasty debate involving a strange issue (whereby the exasperated tell me to RTFM even after my having done so), where this is insanely possible: print_r(is_int('1'));...
3
1743
by: veeman | last post by:
Can someone please write an example containing one element which value is integer type, and one attribute which value is also integer type: Is it something like this: <SomeAttribute...
1
7410
by: redpayne | last post by:
Okay, I finally got this program to run according to what the book had us build it as. Now prof wants case 2 and case 3 to prompt again for input, check input to see if it is the correct type, then...
1
2310
by: =?Utf-8?B?RG9u?= | last post by:
Hello, I'm creating a web service that will allow people to enter their contact information into a SQL Server table. I get it to work when I enter all of the fields and press the invoke button,...
2
3856
by: robtyketto | last post by:
Greetings, Within my jsp I have HTML code (see below) which accepts input, one of these fields sequence unlike the others is an Integer. <FORM ACTION="wk465682AddFAQ.jsp" METHOD="POST"> Id:...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7008
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.