Click here to Skip to main content
12,508,630 members (54,279 online)

Comments by Pablo Aliskevicius (Top 134 by date)

Pablo Aliskevicius 8-Oct-15 2:20am View
Typically, in the class that receives the message that was posted. It may handle the message by converting the raw pointer to a CString or CStringW, passing it to the business logic API that required it in the first place, and deleting it.
Pablo Aliskevicius 3-Mar-15 8:33am View
What happens if you enclose your DataList in a div with a max width?
See here:
Pablo Aliskevicius 1-Jan-15 4:43am View
Take a look at this:
Pablo Aliskevicius 5-Aug-14 10:30am View
If you script the restore, and run it from a query window, after the '100%' message, you'll see a list of messages like 'upgrading to version X.Y.Z'. This is what takes most of the time.
I hope by now your restore is finished,
Pablo Aliskevicius 12-May-14 7:57am View
Also, factory pattern.
Pablo Aliskevicius 19-Mar-14 14:22pm View
Striked out the irrelevant. Still hope to help.
Pablo Aliskevicius 23-Dec-13 7:49am View
Are you writing a compiler?
If not, google VTABLE and read the first 5 results. At least 2 should match your curiosity.
If you're writing a compiler, you'll need a big pile of books.
Pablo Aliskevicius 18-Dec-13 1:44am View
My guess? The hard disk.
Pablo Aliskevicius 17-Dec-13 8:13am View
Which of your parameters is a string?
What is the C++ function signature?
Pablo Aliskevicius 17-Dec-13 8:10am View
I get one record even when SQL Profiler is not running.
Pablo Aliskevicius 10-Dec-13 6:02am View
Look for this in that page:

empid ordermonth qty runqty
----- ----------------------- ---- -------
1 2006-07-01 00:00:00.000 121 121
1 2006-08-01 00:00:00.000 247 368
1 2006-09-01 00:00:00.000 255 623
1 2006-10-01 00:00:00.000 143 766
1 2006-11-01 00:00:00.000 318 1084
2 2006-07-01 00:00:00.000 50 50
2 2006-08-01 00:00:00.000 94 144
2 2006-09-01 00:00:00.000 137 281
2 2006-10-01 00:00:00.000 248 529
2 2006-11-01 00:00:00.000 237 766

Column 'runqty' seems to be exactly what you want.
Pablo Aliskevicius 5-Dec-13 5:57am View
The one about the islands. It's not exactly the same thing you've got (one date per record instead of two), but it's pretty similar.
Best wishes,
Pablo Aliskevicius 5-Dec-13 4:45am View
Did you look at this?
Pablo Aliskevicius 19-Nov-13 5:05am View
This should have been an answer.
Pablo Aliskevicius 13-Nov-13 7:18am View
What happens if you try this?

Pablo Aliskevicius 29-Oct-13 10:41am View
What happens if you try startColorstr='#FFf0f0f0' instead of startColorstr='@from'? (Maybe the @from is not initialized to the background color, depending on browser settings).
Pablo Aliskevicius 29-Oct-13 10:31am View
There might be an issue with the user's screen settings. If so, you can:
1. Try saving a screenshot of the light gray gradient as a .bmp (not .jpg), then showing it in one of the problematic machines.
2. Install Firefox, Chrome and Opera in one of the problematic machines: show the gradient in those browsers.
If gray looks blue no matter what you do, say they may try a different display.
Pablo Aliskevicius 2-Oct-13 10:14am View
Are you compiling in release mode? If so, try:
SHFILEINFO sfi = { 0 }; // zero memory of struct, otherwise may hold garbage.
Pablo Aliskevicius 20-Jun-13 7:22am View
Reason for my vote of 5 \n Better late than never...
Today I stumbled upon this article, it's great: clear, concise, and to the point.
Thanks for sharing!
Pablo Aliskevicius 5-Jun-13 10:40am View
I did something similar once:
* The Broker converts the request into a Job, and puts the Job in a queue. The Broker notifies the client that the Job is in the Queue.
* The Workers (number depends on number of CPUs) pull jobs from the queue, and execute them.
* The Client has a way to query the state of 'his/her' requests.
'Job' is an interface, with one method (Execute()).
In this way, the number of threads was minimized (all Agents disappear; since Job is polimorphic, any worker can do any Job).
In your case, you would also need a Log, that holds the Job state (Queued/Executing/[Succeeded|Failed]). Querying the job state may be done through the Broker, or separately. In my case, the client code may send a request, the client machine may disconnect, and much later, the client reconnects and asks for status.
Pushing notifications to the client is a different matter, but may be done in the context of the execution of the Job.

Just my two bits,
Pablo Aliskevicius 4-Jun-13 4:20am View
ie 8 can behave as if it was ie7, 6 or even earlier. Before standards, each browser had its own set of 'quirks'. Google 'HTML DOM Quirks', you'll find a lot of stuff there.
Pablo Aliskevicius 4-Jun-13 4:04am View
Try hitting F12, see if you are in standards mode or quirks mode. A bit of a long shot, but I've heard that happened to someone I know.
Pablo Aliskevicius 3-Jun-13 5:26am View
Google 'click once'.
Pablo Aliskevicius 29-Apr-13 4:54am View
It may be an issue with Jurassic itself.
Did you try to post one at their site?
They have an 'issue tracker', and you can report bugs there.
Pablo Aliskevicius 8-Apr-13 9:26am View
Did you read the error message? They usually point you in the right direction.
Pablo Aliskevicius 7-Apr-13 1:51am View
Did you try putting the server in COM+?
Pablo Aliskevicius 4-Apr-13 14:43pm View
I'd suggest to send everything but the pictures themselves to the client when loading, then using setTimeout() or setInterval() and AJAX to get the pictures themselves. Not exactly the realm of 'basic HTML' any more.
Pablo Aliskevicius 4-Apr-13 14:40pm View
Thanks for your comment; and more than that, thanks for the link!
Pablo Aliskevicius 13-Feb-13 8:40am View
Reason for my vote of 5 \n Thanks!
Pablo Aliskevicius 31-Jan-13 5:49am View
Most text editors offer an 'encoding' option for files. In Visual Studio, you can see it using File/Save As: there is a combo with encodings there. You can do that for all your Javascript files.
For your ASPX-generated content, you can add a globalization element to your web.config. See; if your machine.config specifies something different than UTF-8, you should specify UTF8 there.
Pablo Aliskevicius 2-Jan-13 2:49am View
Did you try some kind of popup blocker in IE?
Pablo Aliskevicius 13-Dec-12 4:50am View
Maybe not iOS, but Linux?
Pablo Aliskevicius 12-Dec-12 10:40am View
What happens if your string variables have actual values?
Pablo Aliskevicius 3-Dec-12 6:17am View
Pablo Aliskevicius 25-Nov-12 8:01am View
Did you mean to call dtDetalle.Columns.Clear() sometime?
Pablo Aliskevicius 20-Nov-12 9:08am View
Consider adding 'InstallShield' to the tags of your question, and removing 'C#'.
Pablo Aliskevicius 20-Nov-12 7:47am View
Then do only the bulk insert part.
Pablo Aliskevicius 12-Nov-12 4:21am View
My guess is that there is some kind of race condition: ReadToEnd() may get called before ffmpeg writes to the standard output. But, it's just a guess...
I've upvoted the question in the hope of luring someone who knows better.
Best wishes,
Pablo Aliskevicius 12-Nov-12 2:13am View
Consider adding 'InstallShield' to the tags of your question.
Pablo Aliskevicius 11-Nov-12 9:58am View
What is the output if you run the command on a console window?
What happens if you call ReadToEnd() again after WaitForExit()?
Pablo Aliskevicius 11-Nov-12 7:03am View
If your question is about homework, label it as such.
Pablo Aliskevicius 11-Nov-12 3:49am View
Pablo Aliskevicius 11-Nov-12 3:15am View
Awk is open source. Download it, and read.
Pablo Aliskevicius 11-Nov-12 3:11am View
When it's ready, I'll gladly download it!
Pablo Aliskevicius 4-Nov-12 2:59am View
Did you try #import?
Pablo Aliskevicius 31-Oct-12 9:18am View
What error?
Pablo Aliskevicius 28-Oct-12 7:39am View
Pablo Aliskevicius 22-Oct-12 6:13am View
What is spDoc?
If it is a smart pointer, it will release itself when it goes out of scope.
If is is a raw DOMDocument40 pointer, call ->Release() on it one line above the line where it goes out of scope.
Pablo Aliskevicius 16-Oct-12 3:10am View
No, I don't.
Pablo Aliskevicius 15-Oct-12 4:30am View
I can't, so far I've never played with lilo.conf, only with less sensitive files (like
Best wishes,
Pablo Aliskevicius 10-Oct-12 8:00am View
Sounds like an ANSI/Unicode issue. I'd suggest you add a few TRACE statements at the beginning of your unmanaged methods.
Pablo Aliskevicius 3-Oct-12 15:00pm View
It all depends on what your custom action does. If it does not modify the system in any way (e.g., if it checks whether a given .ini file is present, and then updates MSI properties based on its contents) you can schedule it to run whenever you want.
Personally, I steer clear from any custom actions that have side effects: I use custom actions to update properties only, and regular actions based on those properties for everything else.

You can use ORCA to see the actual sequences in your MSI file. See

Hope this helps,
Pablo Aliskevicius 11-Sep-12 8:46am View
Is CSmartFile::~CSmartFile() imported from a VC6 DLL?
If so, the reason may be that name mangling (the '@@' part) is different in VC2010.
Pablo Aliskevicius 11-Sep-12 1:46am View
'Scriptomatic' does it. It's a free download!

Pablo Aliskevicius 10-Sep-12 9:11am View
Why build it? WMI is already in all of your Windows servers.
Pablo Aliskevicius 10-Sep-12 3:57am View
Pablo Aliskevicius 9-Sep-12 10:35am View
Run the script and see what happens. Hint: I wouldn't be surprised if three records are inserted into one table, even if the word 'insert' appears only once in the script.

Pablo Aliskevicius 9-Sep-12 8:17am View
Not XP: if you're using TDD (which is an essential part of XP), you should write tests before you write actual code.
Not SCRUM: if you're using Scrum, you need a team. A team of one cannot realize many of the benefits of scrum.
Your description sounds exactly like Waterfall. That's a very respected methodology, even if it is not exactly 'Agile'; most of the successful production code that exists on the planet was written using Waterfall.
Best wishes,
Pablo Aliskevicius 9-Sep-12 3:39am View
You show a wonderful sense of humour. I mean, 'what is the best methodology for a team of 1?'. You've got my 5!
Pablo Aliskevicius 5-Sep-12 7:23am View
Then, I'm lost. Try the links in solution #2.
Good luck,
Pablo Aliskevicius 5-Sep-12 1:52am View
With DSN -> use the examples in the first link
Without DSN ->
Good luck,
Pablo Aliskevicius 31-Aug-12 11:41am View
Read this (top to bottom):
Particularly pay attention to the connection stuff.
Best wishes,
Pablo Aliskevicius 30-Aug-12 8:10am View
There are three options:
1. Use ADO.
2. Use OLE DB.
3. Use ODBC.

In each case, you create and open a connection object: to restore a database, you should connect to MASTER.
Then you build a string with the desired command.
At last, you execute the command.

Search MSDN for examples, there should be a few still lying around.

Hope this helps,
Pablo Aliskevicius 29-Aug-12 10:41am View
Did you try at
Pablo Aliskevicius 29-Aug-12 3:30am View
Yes, the 'proc' folder shows a pseudo-folder for each process, and those folders have a file named 'commandline' or similar.
Those are text 'files' that have the full command line for the process.

Best wishes,
Pablo Aliskevicius 28-Aug-12 9:16am View
You create a process by running a program.
You can see the list of processes in the 'proc' system pseudo-folder (I think it's /dev/proc, I'm on a Windows machine at the moment).
Google for 'linux commands', spend a few hours reading, in the end you'll get the hang of it.
Best wishes,
Pablo Aliskevicius 27-Aug-12 13:22pm View
You may.
I know you can manually assigning a work item to anyone, and add the name of the shelve set in the item history (with a 'please review' comment).
I don't know of an automatic way to do that, but manual may be OK if most people on your team follow the rules.
Hope this helps,
Pablo Aliskevicius 26-Aug-12 3:39am View
My 5!

cb.BackColor = Color.Transparent; // to show the toolstrip background.
Pablo Aliskevicius 23-Aug-12 7:58am View
As far as I know, there isn't. The wow6432node provides a 'virtual registry' for 32 bit processes, and they can't see the 64 bit areas. Even if you could DLL injection it would not help: the injected DLL would also be 'tricked into believing' that the wow6432node is the actual registry.
So, I don't see any solution but to place the information where the third-party application would look for it.

Hope this helps,
Pablo Aliskevicius 15-Aug-12 2:25am View
Actually, if you want to protect data in a file, you can (and should) encrypt the whole file to begin with. That's the standard way to protect data.
Pablo Aliskevicius 14-Aug-12 6:41am View
Delay loading may do the trick.
Pablo Aliskevicius 6-Aug-12 2:02am View
Did you try posting this question at the Oracle Technology Network?
Try starting here:
Pablo Aliskevicius 5-Aug-12 8:58am View
Do you have a reference to
<script src="/Scripts/jquery-1.6.4.min.js" type="text/javascript"></script>
Pablo Aliskevicius 31-Jul-12 7:37am View
If the subquery returns AT MOST one record, it may return zero records, which would generate an error.
If you know (in client code) that one and only one record will be returned, you also know the name of the city.
Best wishes,
Pablo Aliskevicius 31-Jul-12 7:34am View
If the subquery returns multiple rows, or zero rows, you're in a pickle. Using max() lets SQL Server know that there will be one and only one result.
If there are zero rows, max() will return null, which stays null after concatenation, and the outer query will return zero rows.
Otherwise, LIKE '%' + (zero rows) + '%' will generate an error.
Pablo Aliskevicius 30-Jul-12 10:50am View
Include xyz.h in your client application.
Pablo Aliskevicius 30-Jul-12 2:48am View
A file with the .asm extension is generated.
Pablo Aliskevicius 30-Jul-12 1:51am View
vs2008: right-click the project in 'solution explorer', navigate the tree to [configuration properties],[c/c++],[output files], and from the 'Assembler Output' combo choose 'Assembly with source code'.
Pablo Aliskevicius 24-Jul-12 2:48am View
I saw something at CodePlex, meant for VS2010, but there should be something similar. Something to do with schemas that you copy to some folder.
Did you try there?
Pablo Aliskevicius 17-Jul-12 6:42am View
Can you post some code? Possibly you're running into an ASSERT in the chromium DLL.
Are you using the latest version of the CEF?
Did you check the CEF issue tracker for similar problems? It's at
Hope this helps,
Pablo Aliskevicius 11-Jul-12 10:37am View
In Chrome, you can right-click the suspicious image, and ask for 'analyze element' (or something like that). It shows you the markup and CSS for the current element.
Did you try it? Didn't it help?
Pablo Aliskevicius 9-Jul-12 9:20am View
I thing you should consider using a temporary table for that purpose.
If you're coming to Oracle from SQL Server, note that Oracle temporary tables are different from SQL Server temporary tables in meaningful ways:
1. The tables are inside your database (no TEMPDB).
2. The table records are temporary, but the table structure is permanent: thus, it can be used in functions and procedures.
The similarity is that records are per-session.
A long, long time ago I had a similar need, creation of tables in a stored procedure, for the purpose of implementing 'the poor man's partition' (partitioning for customers with the humble editions of Oracle, back then partitioning was supported in the Luxury Gold Enterprise Edition, or whatever it was called).
Hope this helps,
Pablo Aliskevicius 12-Jun-12 8:23am View
No, those two scenarios are the only ones I've stumbled upon.
It seems that you'll have to search the registry, and see what you find...
Best wishes,
Pablo Aliskevicius 12-Jun-12 3:04am View
Possibly your evaluation version was more advanced that your production version: e.g., your evaluation version was SP1 or R2, and your production version is plain old sql2008.
Pablo Aliskevicius 4-Jun-12 3:57am View
Try googling 'deadlock SQL Server'. It's how it works, its how it's supposed to work.
Pablo Aliskevicius 21-May-12 7:55am View
Please define 'held'.
Pablo Aliskevicius 18-May-12 12:49pm View
I'd suggest checking the return values of the allocation functions (GlobalAlloc, GlobalRealloc, ...) for NULL. Lately, memory allocation functions are returning NULL more than they used to, particularly on virtual machines. Something to do with timeouts.
Pablo Aliskevicius 17-May-12 9:21am View
Pablo Aliskevicius - 7 secs ago
I'm sorry, I can't give you a snippet, since I don't own that code.
Basically, you'll have to play and see what happens.
Best wishes,
Pablo Aliskevicius 17-May-12 9:21am View
I'm sorry, I can't give you a snippet, since I don't own that code.
Basically, you'll have to play and see what happens.
Best wishes,
Pablo Aliskevicius 8-May-12 10:19am View
Reason for my vote of 5
Great question!
Pablo Aliskevicius 3-May-12 7:18am View
Why not?
Pablo Aliskevicius 2-May-12 14:56pm View
Let's say you move to the West side of the Atlantic. When the 'system time' is noon, the 'local time' may be 8:00 am.
Also, the 'system time' does not provide for daylight savings. The 'local time' is the one you see in the Windows taskbar.
Best wishes,
Pablo Aliskevicius 2-May-12 14:56pm View
You're right. Seen it now...
Thanks for the hint!
Pablo Aliskevicius 2-May-12 13:25pm View
I'm a little aprehensive about functions like _localtime64(), that return pointers that it's not clear how or when they should be freed.
Just my two bits...
Pablo Aliskevicius 2-May-12 1:46am View
Different output every time is expected. Some encryption algorithms introduce random noise in the encrypted string; this makes them harder to break. The whole issue of encryption, with concepts like 'evidence' and 'enthropy' (which have, in the context of encryption, different meanings than their usual ones) has filled dozens of books.
Pablo Aliskevicius 1-May-12 10:19am View
Reason for my vote of 5
This can happen to anyone.
Pablo Aliskevicius 24-Apr-12 2:27am View
You say:
"super simple framework in C++ for a server and client"
IMHO, C++ is seldom super-simple; I use C++ mostly for heavy lifting. For RAD (Rapid Application Development), I'd suggest .NET.
Just my two bits...
Pablo Aliskevicius 23-Apr-12 9:47am View
The "Book" object is built (among others) of std::string members.
std::string may hold pointers to whatever, wherever (out of the Book instance), so when you save the Book, you're saving pointers.
Pointers are variables that hold an address in the computer's memory.
When you reload those pointers, you receive the same address again. But the contents of that memory may be now something else (if available).
See also solution #2.

Hope this helps,
Pablo Aliskevicius 23-Apr-12 9:36am View
Glad to hear.
Do you have a question?
Pablo Aliskevicius 17-Apr-12 10:26am View
"the target machine actively refused it" - means there is a target machine at This is a good sign.
According to Wikipedia, Port 25 is SMTP (Simple Mail Transfer Protocol (SMTP)—used for e-mail routing between mail servers). This also looks good.
Sounds like a firewall issue. Are you using an in-house server? Can you check its firewall?
Pablo Aliskevicius 17-Apr-12 5:51am View
Off the top of my head, I can suggest two things:
1. Start your query with a double slash: XPath="//item.. insted of XPath="/item
2. Try debugging the XPATH part by part:


I'm a little rusty about how fn:contains works, and which namespaces you should import.
When you get it to work, please share the query!

Hope this helps,
Pablo Aliskevicius 9-Apr-12 8:07am View
Is the .mdf file, on disk, actually read only? This could be so if the file was read only when you packed your installer. For instance, if your .mdf file is under source control, and you checked it in before packing your installer.
Pablo Aliskevicius 9-Apr-12 1:34am View
Please clarify about "not working": is the event firing at all?
The function storeMouse, as posted, has a typo: does this typo avoid compilation?
Pablo Aliskevicius 8-Apr-12 8:43am View
You have onFocus and onBlur events in the client window, and you can handle them in JavaScript to set a property that would get submitted when your button is clicked. Would that help?
Pablo Aliskevicius 5-Apr-12 7:18am View
From your description, I assume that your UI is some kind of wizard, with the 'progress screen' near the end, and a BackgroundWorker in the outer frame, and that the 'manual update' runs synchronously in the UI thread.
I'd suggest putting another background worker instance in the form where the 'manual update' runs, and run also the 'manual update' in a background thread - of course, only if I guessed right about your architecture.
Hope this helps,
Pablo Aliskevicius 29-Mar-12 7:09am View
Did you test hr? Something like "if (FAILED(_hr)) _com_issue_error(_hr); "
This should help you identify the line where some action fails.
Pablo Aliskevicius 26-Mar-12 11:18am View
if (hRes==S_OK)...

Is this condition actually true?
Pablo Aliskevicius 26-Mar-12 11:13am View
This looks like a homework question. If so, please say so.
Pablo Aliskevicius 26-Mar-12 11:12am View
Which line is 222?
Are you using GCC?
What do you mean by
Pablo Aliskevicius 25-Mar-12 4:41am View
The shortest way would be exposing HTTPS endpoints only, no HTTP.
Would this be suitable?
Pablo Aliskevicius 22-Mar-12 8:55am View
You should get a string with "General\0Profile0\0\0". So, pSecNames + 9 should point to "Profile0".
Pablo Aliskevicius 22-Mar-12 8:12am View
Any reason not to let the user choose what to expand and what to collapse? That's what most people, IMHO, expect.
Pablo Aliskevicius 20-Mar-12 3:28am View
Reason for my vote of 5
Works like a charm: the pain is gone!
Pablo Aliskevicius 15-Mar-12 2:35am View
If the image is on paper, scissors may do the trick.
Pablo Aliskevicius 11-Mar-12 8:58am View
Reason for my vote of 5
Nice tip, Nir!
Pablo Aliskevicius 6-Mar-12 8:41am View
ReadFile will read the data in the file; you have to create CreateFile again, with different flags (GENERIC_READ only).
Try to play with the MSDN examples for ReadFile.
If what you want is data about the file (size on disk, date, ...) there are other API functions that may be of assistance.

and GetFileInformationByHandleEx (
Best wishes,
Pablo Aliskevicius 22-Feb-12 8:56am View
Is this a homework question? If so, you should mention that.
If not, it would be nice of you to mention how you happened to stumble upon this particular lines of code.
Pablo Aliskevicius 22-Feb-12 5:49am View
Are you sure you posted this question in the right place?
Pablo Aliskevicius 22-Feb-12 5:48am View
cout<<pin[i][j] % 2;

Is this what you wanted? The question is not clear.
Pablo Aliskevicius 22-Feb-12 3:33am View
Reason for my vote of 5
Pablo Aliskevicius 14-Feb-12 2:06am View
Dear Abhinay,
Based on your question, I assume that you are new to C/C++. First and foremost, welcome on board!
Second, since you're on CodeProject since 2008, I assume you're not new to programming. In your profile, you don't say much about yourself, so anyone trying to help you will have to guess - I guess you have a background in either .NET or Java, or possibly Visual Basic.
If this is true, I can recommend a site where you can read about C++, you can find there a good book that is meant for programmers trying to learn C++ after knowing another language:, the book names are "Thinking in C++, 2nd edition, Volume 1" and "Thinking in C++, Volume 2: Practical Programming". I have recommended those books to colleages coming to C++ from C and from C#, and they have found them interesting.
Of course, if my guesses are wrong and you have a background in C++, you should totally ignore this post.
Again, good luck,
Pablo Aliskevicius 9-Feb-12 5:25am View
Actually, the structure DLGTEMPLATE defines cx and cy in dialog units, so the pixel/dialog unit conversion is not the issue.
Some manipulation of the window size in WM_INITDIALOG may help.
Pablo Aliskevicius 6-Feb-12 9:13am View
Warning: usually, you do not want to know the screen resolution, unless you're writing a screen saver.
For any other kind of project, the window size is relevant, not the resolution. For instance, I frequently tile a browser window and my Outlook window; my taskbar is on the left side of the screen, and a gadget on the right, so the browser window's width is about 40% of my screen resolution. I've seen similar use patterns among other people.
Google for 'responsive web design', I found this (among many others):

Anyway, thanks for sharing!
Pablo Aliskevicius 1-Feb-12 2:01am View
First and foremost, thanks for taking the time to share.
A few comments:

1. You could use sys.tables instead of sys.objects.
2. Using a cursor may be more efficient than selecting top 1. Did you compare them?
3. I kind of miss the point: why would someone want to drop all tables in the database? It would be nice if you added a scenario. For instance, to set up a database with a known state for automated tests, I'd prefer to restore one.

Pablo Aliskevicius 30-Jan-12 1:35am View
Reason for my vote of 5
Very nice!
Pablo Aliskevicius 29-Jan-12 12:02pm View
Ok, then I'd suggest you to write your own version of shared_ptr, writing something to the console in both the constructor and the destructor (for instance, the inner raw pointer and the reference count). Also, write to the console whenever your list is trying to release a pointer, and see whether they're released twice.

I also see that you figured a solution, if it works - keep it.

Hope this helps,
Pablo Aliskevicius 29-Jan-12 9:47am View
A dumb pointer it the opposite of a smart pointer: char * is a dumb pointer. Raw pointers are the same thing.
The reason why you're not using STL collections is relevant: if I was new to C++, I wouldn't try to improve on Stepanov's work. I don't want to get into much detail about why this is very relevant.

Good luck,
Pablo Aliskevicius 29-Jan-12 9:36am View
Try this. It may have some psichological influence ;)
Pablo Aliskevicius 29-Jan-12 4:10am View
Pablo Aliskevicius 28-Dec-11 10:38am View
1. TOP does not work on Oracle (at least versions 8 through 10, the ones I worked with).
2. The IDENTITY field is usually meaningless. For instance, in Robby's example, some user is paging by a date column; let's say that column is the birth date of a person; there is no guarantee that the records were created on a 'first born, first entered' order.
The ROWNUMBER function seems to be a lesser evil: another option would be getting all the relevant records into the client, and paging there.
Pablo Aliskevicius 17-Nov-11 1:51am View
Reason for my vote of 5
Pablo Aliskevicius 25-Oct-11 4:56am View
Reason for my vote of 5
Thanks for 10 minutes of fun.
Pablo Aliskevicius 26-Jul-11 2:15am View
Reason for my vote of 5
Thanks for the tip!
Pablo Aliskevicius 5-Jul-11 8:42am View
Closing a Windows application when ESC is pressed is not necessarily a good idea. In the old days of DOS, you would use ESC to navigate menus, going back from an inner menu to the 'main' menu: pressing ESC once too many wold exit whatever application you were in.
In Windows, you can still press ESC to navigate menus, but you exit a program by pressing ALT-F4.
IMHO, you would do better to refrain from using ESC to exit a program.
Anyway, thanks for taking the time to share this code with us.

Advertise | Privacy | Mobile
Web02 | 2.8.160927.1 | Last Updated 1 Jan 1900
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid