...being, I just need to test sending strings with foreign characters to our graphics components.
At the moment, we're handling UTF-8 strings (as char*) instead of a true multi-byte type. I would like to be able to use wcstombs() to convert some sample text for testing. However, if I do...
Hello all,
I'm working with wide characters and need to use the wcsdup function to replace some code that was using normal characters and the strdup function.
I'm including <wchar.h> and have had no problems with the wchar_t type itself nor with wcscpy, but when I try to compile when using...
Hello all,
Not sure if this is the best place for this, but I figured it was worth a shot.
My old computer's hard drive had my entire iTunes library. That motherboard died, but I took the hard drive out and put it in an external enclosure and connected it to my new computer. It reads the hard...
I tried ControlAdded/ControlRemoved initially, but (oddly) they're not the solution. I think those only work if the ListBox becomes the Parent for some other control. It seems like the Items collection needs Added and Removed events.
Hello,
I wanted to know if there's an event available for a ListBox that gets triggered when something is added or removed from the Items collection? I've poked around with a bunch of the events but nothing seems to work. It would be pretty easy to extend the control to do this but I'd rather...
Hello,
I'm trying to executed sequence of INSERTs using a prepared command.
The code:
MySqlCommand cmd = new MySqlCommand();
cmd.Connection = myConn;
cmd.CommandText = "INSERT INTO someTable VALUES (@param)";
cmd.Prepare();
cmd.Parameters.Add("@param", MySqlDbType.Int16);
for (...)
{...
Ok... wasn't really sure where to post this.
I'm running Visual C# Express 2008 on a 32-bit processor (Core2Duo) but w/ Windows XP 64-bit since I have 4GB of RAM.
When I try to run a program that uses directX/3D, I get BadImageFormatExceptions. Is there any way to make directX compatible with...
I am having a similar problem.
Running as root on a RedHat Enterprise distribution. I run rpm -i on both the client and server packages. Then I run mysql_secure_installation. When it prompts for current password for root, I just hit enter and get:
ERROR 1045 (28000): Access denied for user...
Hello,
I am using a class whose constructor takes a parameter as follows:
Class(const OtherClass& param1)
My code is basically:
OtherClass oc = new OtherClass();
Class c = new Class(oc);
...which generates errors. How do I properly pass the OtherClass instance to this constructor?
Hello,
I have a class:
class Deck : vector<Card*>
When I try to access typical vector methods...
Card * c = new Card(...);
Deck myDeck;
myDeck.push_back(c);
I get an error: error C2247: 'std::vector<_Ty>::push_back' not accessible because 'Deck' uses 'private' to inherit from...
Hello all,
I'm trying to execute a web service in a C# windows app. Without any security provisions, it works fine. However, when we switch to declarative security, we get the following SoapException: "Server was unable to process request. -> Request for principal permission failed."
The web...
Hello,
I'm trying to dynamically populate a CheckedListBox with objects that have a string property (name) and a numeric property (id). The control populates, but displays the name of my class (testproject.Player) even though I have a ToString() method in my class.
Here's the code:
//Class...
Hello,
I'm trying to setup a website using all PEAR components, and have a structural question concerning QuickForm_Controller:
Is it possible to arbitrarily move between pages in a controller using jump/next, etc.? I want the logic code in my custom Actions to determine the Nextpage, and then...
OK, this one is complicated.
I am building a series of pages with the PEAR quickform_controller framework. On my second of two pages, I want to display two checkboxes each for every row of an array passed from the first page (this, by itself, works fine).
At the end of all this, I want to be...
Trying to install under Mandrake 10. Readline and zlib are already installed. I'm getting the "could not execute a simple test program" error. This is the first problem entry in config.log:
configure: failed program was:
#ifndef __cplusplus
choke me
#endif
Anyone have any ideas? Any help...
I know this is old, but it's a pain-in-the-butt situation. Anyway, the solution is to use utl_raw.cast_to_raw(), which accepts a varchar2 as the parameter.
I was very happy to find this, hopefully it helps some others out too.
Dan
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.