17 Topics
|
|
I found a bit of code which im unsure about in this poorly documented project im on. To be honest I havent got a clue what is going here. public void TestMethod(ISystemScriptingInterface system, ScriptEventArgs eventArgs) { var databaseScriptingInterface = system.GetInterface("database") as IDatabaseScriptingInterface; if (databaseScriptingInterface == null) { throw system.GetException(LocalisedSystemText.InternalServerError(), "Database … |
|
Hello, I have a particular set up of cast operators and constructors which is leading to a compile-time ambiguity error. I am wondering if somebody can explain why this is happening and what can be done to fix it. For example, here we have 2 classes: class A { int … |
|
Hello good day. Thank you for trying to help. My problem is as follows. A few columns in my table, use a JComboBox as the editor for their cells. Each cell, in a row (via JComboBox) presents the same choices to the user. The user is allowed to choose from … |
|
I am new to C and am trying to read the characters in a string serially but I keep getting the error > makes pointer from integer without a cast This is my code void UART1PutChar(char Ch) { //char data; //transmit only if Tx buffer is empty while(U1STAbits.UTXBF ==1); U1TXREG … |
|
I understand that when casting a string to a float, php will evaluate from left to right and stop at the first invalid character. So for example, the string "1-23" will cast to a 1. I need to evaluate the entire string though, so that the string "1-23" would not … |
|
I have looked into Cast and Convert, but I cannot find a way to do this. I need to convert four digits into an hour format. For instance, 0800 would become 8:00 or 1530 would become 15:30. I cannot use functions, I'm using a special form of SQL. Any suggestions? … |
|
How can I cast a base class to a derived on at runtime. What I am trying to do is the following: I need a system which will hold the subscriptions, where a certain type of message, has an assigned Subscriber. When a message is received, it will bi forwarded … |
|
I just stumbled over this: [ICODE]mysql> select "abc" = 0; +-----------+ | "abc" = 0 | +-----------+ | 1 | +-----------+ 1 row in set, 1 warning (0.06 sec) mysql> show warnings; +---------+------+-----------------------------------------+ | Level | Code | Message | +---------+------+-----------------------------------------+ | Warning | 1292 | Truncated incorrect DOUBLE value: … |
|
Hi I'm looking for an efficient way of converting an array of integers to an array of doubles. Currently I'm doing this: [CODE]int *a = new int[1000]; //And then assign values to the indexes double *b = new double[1000]; for(int i = 0; i < 1000; i++) { b[i] = … |
|
Hello I am getting the above error message with my program. The line giving the error is marked. What I am trying to do is create a file, (new.ppm) and have it then returned onto stdout. [code=c] FILE *fp; fp = fopen("new.ppm", "w+"); //creates the new file fprintf(fp, "P3\n%d %d\n255\n", … |
|
Here's an easy one for you experts :P What is casting and parsing? How exactly are they different? After explaining, could anyone possibly tell me how to cast/parse the various types from and to each other? (the types being: int, double, char and String) Also, in which situations would I … |
|
I get the following error from running this code. Was wondering if 'i' and 'j' are considered objects. If yes is there any way i could cast them..... How do i write a better for loop for this.... array2D = [[0 for i in range(10)]for j in range(10)] for i … |
|
Hi, I'm hoping someone out there has the answer to this question: How does one convert a table column's data type from INT to CHAR/VARCHAR? Background: I'm trialing some ID card software and it uses Access as its backend. It has ODBC capability and I'm able to connect to my … |
|
Hi all, In one RTOS, i'm debugging one issue which is, program is crashing one point always when it send a 8-bit value (Lets call it 'Int8 rogue_int')to a function (lets call it 'Infected( Int16 )' ) whose definition is taking that variable as 16-bit variable. Before entering to that … |
|
Okay, I'm trying to learn C# (coming from c++). I found this code on a tutorial. When I try to compile it I get this error "cannot implicitly convert from 'int' to 'string'" I thought it was supposed to convert it from string to int??? [CODE] int Number; Number = … |
|
my assignment is to retrieve data from a txt file and output how many tests were input, average of all the tests, and then list the letter grade beside each text what i have so far: [CODE] private StreamReader strRead; public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs … |
|
Have you ever wanted to meet Neil Armstrong, the first man on the moon? So have I, but we probably never will. However, if you’re free in mid-July and don’t mind traveling to Toronto, you can meet [URL=http://www.geraldmweinberg.com/Site/Home.html] Gerald “Jerry” Weinberg[/URL], the man generally cited as the industry’s first software … |
The End.