I would like to build a small wizard in C++ with no dependencies on any framework.
Apparently, is really simple, but I don't know where to start. Can you point me to good information (tutorials, etc) on it. Should I use MFC Application or a Win32 project? Is there any step by step guide ?
I'm using VS 2010. The majority of info I'd found on MFC…
I am writing an embedded application in which I need to display a digit on LCD.
There must be some pre-existing libraries available doing the same. Or is there some reference code in C-language that could be referred?
Microcontroller is ARM based LPC2378.
I'm trying to write an Imap4 client.
For that I use a SslStream to Connect to the Server.
Everything's fine until I send the "Login" command.
When I try to get an Answer to it, SslStream.ReadByte() block the thread.
The result is that my programm crashes always.
Whats happening here??
Code:
if (ssl)
{
s = stream;
}
…
Hi I am using Google Bar Chart through the visualization API on my site:
http://code.google.com/apis/visualization/documentation/gallery/imagebarchart.html
And my x-axis is time, and every time interval is a time of day in the format (HH:MM)
Here is my code for the graph:
<script type="text/javascript"…
How can I validate a form using regex in codeiginiter. I'd like to check the input against:
^([0-1][0-9]|[2][0-3]):([0-5][0-9])$
I'm assuming the best way is in some sort of callback. I tried a bunch of ideas on the web but I can't seem to get any working.
Please share and vote for the best!
Please do not close this. This is a subjective question, but is programming related and can be beneficial to people.
Right now, the text seems not to be exactly vertical centered.
It seems that there is more top-padding than bottom-padding.
Although of course, there is no padding in the CSS. How do I make this completely vertical aligned?
My friend says that Django only has 1 thread or something?
And I have to edit my 000-default in order to add more processes? He suggests 4 or 5.
What exactly is this, and what do I have to do?
Thanks, I'm a noob.
Hi guys, basically I want my JFrame to become a completely new JFrame object when an event is triggered. I have some code that basically calls [CODE]GUI gui = new GUI(x, y)[/CODE]
the only problem I'm having is that as well as creating the new GUI object, it is not deleting the old window. Can anyone tell me…
Why can't I use code like this ?
1
int i = 0;
try i = int.Parse("qwerty");
catch throw;
2
try i = int.Parse("qwerty");
catch;
finally Log.Write("error");
And should write like this
1
int i = 0;
try { i = int.Parse("qwerty"); } catch { throw; }
2
try { i = int.Parse("qwerty");}
catch {}
finally…
Hello
I'm using fluent nhibernate v. 1.0.0.595. There is a class:
public class Weight
{
public virtual int Id { get; set; }
public virtual double Value { get; set; }
}
I want to map it on the following table:
create table [Weight] (
WeightId INT IDENTITY NOT NULL,
Weight DOUBLE not…
How would you save this data on a database: An user can make phone calls (id, date, hour, duration, outcome).
The "outcome" can be, for example, to recall the client on another day (so I have to save the date, the hour, etc of this "future" call).
How would you manage this data on a db?
At the…
Hey guys,
If I have an array structured like this:
$array[index]['first_name']
$array[index]['last_name']
Is there an easy way to implode it into something like first_name last_name,first_name last_name, etc. for all the indices?
Implode didn't seem to do what I wanted for something like…
Hi.
I want to have a LinkButton that adds 'span' tag around the text.
protected override void Render(HtmlTextWriter writer)
{
Text = String.Concat("<span>", Text, "</span>");
base.Render(writer);
}
It's works perfectly, but only if I add text like…
I have no idea why it won't show. First I create an instance of the component and then add it to a certain element in a two-dimensional JPanel array. Then I loop through that array and add each JPanel to another JPanel container which is to hold all the JPanels.
I then add that final…
I have a large table (300 million lines) that I would like to dump to a csv - I need to do some processing that cannot be done with SQL. Right now I am using Squirrel as a client, and it does not apparently deal very well with large datasets - at least as far as I can tell from my…
I have a web application made for several groups of people not connected with each other. Instead of using one database for all of them, I'm thinking about making separate databases.
This will improve the speed of the queries and make me free from checking to what group the user…
I've all this kind of functions.
ssize_t fuc1(int var1, void *buf, size_t count);
int func2(char *charPtr, int mode, int dev);
short func3( long var2);
problem is that data types in C has different sizes when compiled on different machines(64bit & 32bit). This is true for…
I have an UIImage view that responds to touch events. I want to cancel the touch sequence if the touch goes outside of certain bounds. How can I do that?
I know that I can inspect the coordinates of the touch object, what I don't know is how to cancel the sequence. I don't see…
Hello,
is there a way (settings? "macro"? extension?) that I can simply toggle outlining so that only the using section and my methods collapse to their signature line, but my comments (summary and double slash comments) and classes stay expanded?
Examples:
1) Uncollapsed
…
I've always used cURL for this sort of stuff, but this article got me thinking I could request another page easily using the Request object in Kohana 3.
$url = 'http://www.example.com';
$update = Request::factory($url);
$update->method = 'POST';
…