convert nsString to char * in VC6

Hi

I want to return nsIDOMNode->->GetNodeName(name);  (where name is an
nsString), in a char* form.

How can I get the char * content from an nsString.


Thank's for your responses

philippe

0
philippe
2/5/2007 3:04:29 PM
mozilla.support.seamonkey 13420 articles. 0 followers. Post Follow

1 Replies
644 Views

Similar Articles

[PageSpeed] 38

philippe wrote:
> Hi
> 
> I want to return nsIDOMNode->->GetNodeName(name);  (where name is an
> nsString), in a char* form.
> 
> How can I get the char * content from an nsString.
> 
> 
> Thank's for your responses
> 
> philippe
> 

Hi Philippe,

You'll probably have better luck in a developer newsgroup, or an 
extensions group (e.g. mozilla.dev.extensions).

Chris
0
Chris
2/6/2007 2:08:17 AM
Reply:

Similar Artilces:

convert C# char to C char
Does anyone now how to pass a C# char to unmanaged C char? The big difference is the C char is an 8 bit char and a C# is 16 bit. I can use the encode method but that creates a byte[]. I can't figure this out. Jim "It is kind of fun to do the impossible" - Walt Disney...

Seamonkey support
I called support for help in transferring email from one hard drive to another after a crash. It took all day, after being disconnected twice and leaving my credit card info on one of those, I was finally able to reach the second live person. I explained that I needed to transfer my email from the previous account to the new one, gave cc info again and was walked through the process to restore the needed files. When I told the person I needed the steps for my second email address, I was told that it would be another $39.95. He refused to help without another charge. luckil...

support/what support
Name: William Johnson Email: william0992atsbcglobaldotnet Product: Firefox Summary: support/what support Comments: your support? department for Firefox issues is nothing but a circular maze of unbelievably confusing information that is of no use for the layman and I would dump this piece of trash if I didn't need it for certain websites. I don't know how to reprogram the many bugs or fix the many websites broken by this thing and its "error console" with no directions as to what to do with it. What is it's purpose if there is no help function for it? ...

AFPTCP Authentication
Hi folks, We have AFP running (NW65, SP5) and have a problem. It seems, when a Mac OSX (10.4.7) user connects via AFP and changes their password (UP enabled), if the password is more than 8 characters in length, the 9th character and over get dropped. These workstations are also using GW Messenger. The users are also Window users. In doing research for this problem, here are some observations... 1. OSX 10.3.x and below only allow a max of 8 characters (if you try to enter more than eight, the OS will pop up a msg box about the limitation). 2. OSX 10.4.x supports more t...

superreview requested: [Bug 352523] Warning: String literal converted to char* in formal argument aAttr in call to nsFrameUtil::Tag::GetAttr(char*). : [Attachment 238389] constify and tag some places
timeless <timeless@bemail.org> has asked Robert O'Callahan (Novell) <roc@ocallahan.org> for superreview: Bug 352523: Warning: String literal converted to char* in formal argument aAttr in call to nsFrameUtil::Tag::GetAttr(char*). https://bugzilla.mozilla.org/show_bug.cgi?id=352523 Attachment 238389: constify and tag some places where bad things will probably happen https://bugzilla.mozilla.org/attachment.cgi?id=238389&action=edit ------- Additional Comments from timeless <timeless@bemail.org> severability clause: the addition of comments and codepath note...

superreview granted: [Bug 352523] Warning: String literal converted to char* in formal argument aAttr in call to nsFrameUtil::Tag::GetAttr(char*). : [Attachment 238389] constify and tag some places wh
Robert O'Callahan (Novell) <roc@ocallahan.org> has granted superreview: Bug 352523: Warning: String literal converted to char* in formal argument aAttr in call to nsFrameUtil::Tag::GetAttr(char*). https://bugzilla.mozilla.org/show_bug.cgi?id=352523 Attachment 238389: constify and tag some places where bad things will probably happen https://bugzilla.mozilla.org/attachment.cgi?id=238389&action=edit ...

Convert Number to char
Dear All: I need function to convert numbers to char like ($100) to only one hundred USD> There was code for this posted in 2007 in the general group, under the subject Number to Word. -- Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do Product Enhancement Requests: http://my.isug.com/cgi-bin/1/c/submit_enhancement "Hany Maher" <hany_maher@hotmail.com> wrote in message news:4ba731f0@forums-1-dub... > Dear All: > > I need function to convert numbers to char like ($100) to only one hundred > USD> > &g...

how convert char to date?
hi how can I to convert a field char to Date before of insert? ej: 15/12/1999 I can�t save this in a table with field Date. Thank Rafael What kind of database are you using? What I usually do is use the appropate database function to_date() or date() to convert the field during my insert statement. Scott hugo Ernesto Chavez Varela <hugone@merca.net.co> wrote in message news:jAl8p#8R$GA.50@forums.sybase.com... > hi > > how can I to convert a field char to Date before of insert? > > ej: 15/12/1999 > > I can�t save this ...

pbstring convert to char *
Hi, Anybody can tell how to convert a parameter typed pbstring to a char * ? Thanks :) Bonlaya wrote: > Hi, > > Anybody can tell how to convert a parameter typed pbstring to a char * ? > > Thanks :) > > I found somewhere in my old code below lines, surely it can be done better: :GetParameter(char *mess, char *value, int isattr) ... pbstring the_value; LPCTSTR str_value; ... { the_value = ci->pArgs->GetAt(1)->GetString(); str_value = m_pSession->GetString(the_value); errors = DisplayDebug("->Received V...

converting char in pb10
I have a problem in converting a character string from a interger in PB10 eg. string ls_char integer li_char li_char=134 ls_char=char(134) in PB6.5 the HEX value for ls_char is "86" in PB10 the HEX value for ls_char is "3F" even using charA(134), the return still be "3F". In fact I needed the return same as PB6.5 for data compare with DB. Any suggestion for such case. Thanks Joseph PB 10 is Unicode ... while PB 6.5 was ANSI! "Pb NG" <a@a.a> wrote in message news:443c6e8d@forums-1-dub... > I have a pro...

trying to convert to seamonkey
I would like to go to seamonkey -the mail newsgroup stuff seems ok the navigator part gets into trouble in the 1.x line. The latest is a bouns violation in SRCHSVC.dll when I do a Google search. I am fairly certain it is a profiles thing as a new (mionimal) profile soes not show this failure. Are there some not so drastic things some kind soul might suggest. It is time for moz 1.x to go Thanks Leo Tick wrote: > I would like to go to seamonkey -the mail newsgroup stuff seems ok > the navigator part gets into trouble in the 1.x line. The latest > is a bouns violation in SRCH...

convert int to char
does anyone know how to convert integer to a predefined formated string e.g. from integer 345 to string 00000345 Thank you. The following will return "00000345" : select right(replicate("0", 8) + convert(varchar, 345),8) This, as well as other handy tips, is in the freely downloadable ASE QUickRef Guide Supplement which you can get from http://www.euronet.nl/~syp_rob/ase_qref.html HTH, Rob -- ---------------------------------------------------------------------- Rob Verschoor Certified Sybase ASE 11.5 Administrator (Professional) Certi...

Converting Text to Char
In a stored procedure I need to convert a "text" column to several "character" columns so that I can select pieces of information in the text column. The text column contains more than 255 characters, so I can't convert it to a single char column. Example: textdata text chardata1 char(255) chardata2 char(255) chardata3 char(255) select chardata1 = substring(textdata,1,255), chardata2 = substring(textdata,256,255), chardata3 = substring(textdata,511,255) fro...

Convert nsString to wstring
Hi all ! I have a problem with a convert function in my XPCOM component : wstring nsTimmy::ConvertToWString(nsString * source) { wstring dest; const PRUnichar *begin, *end; wchar_t wideChar; begin = (*source).BeginReading(); end = (*source).EndReading(); while(begin != end) { wideChar = (wchar_t)*begin; dest.append(&wideChar); ++begin; } return dest; } This function works with Windows and visual studio compiler but not with linux and GCC 4.1. It builds and doesn't crash at execution but the characters returned in dest are juste wrong. Th...

Web resources about - convert nsString to char * in VC6 - mozilla.support.seamonkey

Apple Emoji / iterate through NSString
Apple Emoji / iterate through NSString

Beginning Objective C for iPad on the iTunes App Store
Get Beginning Objective C on the App Store. See screenshots and ratings, and read customer reviews.

Twitter Engineering: Mobile app development: Catching crashers
Thursday, May 30, 2013 Mobile app development: Catching crashers Before Twitter for iOS code reaches production, we run it through static analysis, ...

Objective-C - Wikipedia, the free encyclopedia
.h, .m, .mm Objective-C is a general-purpose , high-level , object-oriented programming language that adds Smalltalk -style messaging to the ...

0xced
skip to main - skip to sidebar [Cocoa hack]; Sunday, January 04, 2009 Using your own address book in the iPhone Simulator Jailbroken iPhone with ...

objective-c怎么将WCF的DateTime类型转换成NSDate
NSRange begin = [dateString rangeOfString:"("];NSRange end = [dateString rangeOfString:"+"];NSString* milliSecondsSince1970 = [dateString su ...

Apple pushes iOS 6.0 Beta 2 OTA update to developers
Not available yet on Apple’s Dev site, Developers are pinging us that a 299MB -iPhone4S/322MB iPhone 4 update is available for iOS 6 via OTA ...

IPC Made Easy: Introducing XPC and NSXPCConnection
Some new classes were introduced in Foundation.framework as part of Mac OS X 10.8 (Mountain Lion) to help ease the pain associated with performing ...

Apple Posts Release Notes For iOS 7 Beta 3
Apple has published the release notes for the third iOS 7 beta 3. Take a look: Introduction iOS SDK 7.0 provides support for developing iOS ...

NSCharacterSet Class Reference
Describes a set of Unicode characters used in scanning and searching operations. An NSCharacterSet object represents a set of Unicode-compliant ...

Resources last updated: 12/18/2015 1:02:10 PM