Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
H

Heinz_

@Heinz_
About
Posts
67
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Minimize window to gain memory space???
    H Heinz_

    Thanks for the reply. I'm not using the task manager to get the memory stats in my app, i'm using GetProcessMemoryInfo() from the Win32 API wich is the same i guess. The real thing is: Try this minimize-freemem thing with WinRAR and Task Manager. WinRAR is not .NET (.NOT for me ;P ). So, i think .NET is not the issue here. This also applies to Win32 and all subsequent wrappers. Anyway, for my app i'm also using native Win32. Don't know why your reply is strictly related to .NET. "Windows Forms" is not .NET. WinForms is present also in COM programming (VB6 for example) and MFC so i guess i'm not in the wrong forum (unless this forum is specific for the System.Windows.Forms.dll .NET module). .NET or not, my question has been answered anyway ("...What Task Manager is showing you is the memory that is RESERVED for the process, NOT what your app is actually using..."). Thank u very much. -- Modified Monday, August 16, 2010 3:12 AM

    Windows Forms performance help tutorial question

  • Minimize window to gain memory space???
    H Heinz_

    Hi there, Check this out. It happends with all programs i have installed. I have WinXP SP2. When i open any program, lets say Winamp for example, the program starts with 11.000 KiB of memory usage, i minimize the program and immediatly restore it and now it uses 1.500 KiB. Why is this happening? Do applications need to start minimized and then manually restored to make use (and show in the task manager) of the proper memory space? Again, it happends with every windowed app. This issue is kind of important to me right now because i have to show the efficiency of a demo, in terms of response time and memory usage. Any thoughs about this? Please try it. Thanks.

    Windows Forms performance help tutorial question

  • Win32 Resources - Data size
    H Heinz_

    Hi everyone, I'm trying to load a resource (mp3 file) into global memory so other apps can access the resource. I use the combination of FindResourceEx/LoadResource/LockResource (it works perfect) and i'm able to get the pointer to the data but it's useless since i don't have access to the size of the resource so, apps don't know how many bytes to read. What can i do to get the data size??? Thanks in advance.

    C / C++ / MFC performance question learning

  • Difference between .h and no .h [modified]
    H Heinz_

    I think iostream.h is keept for backwards compatibility, all the old and new stuff is in iostream, don't know why they switched.

    C / C++ / MFC question json help

  • Assembly code & binary numbers [modified]
    H Heinz_

    So, in conclusion assembler code is recommended only for special cases such as direct hardware communication and others. Assemblers is non portable across cpu architectures but is portable across OS platforms right? x86 asm code is the same in all platforms so it should be portable in this term, but asm syntax code is not compatible between different assemblers. Correct me if i'm wrong. ¿Hardware drivers are written or parts of them in assembler?

    IT & Infrastructure c++ delphi performance question

  • Can't send register value to port 0x43
    H Heinz_

    Hi, with assembler code embedded in my c++ code i'm trying to send a value to I/O port 0x43 (8254 timer control) but the program crashes at this point, i'm using digital mars c++ compiler wich has an inline assembler, also tried mingw and it's worst (it doesn't even compile), here are the asm lines: asm { mov AL, 0xB6; out 0x43, AL; // It crashes in this line. mov AL, 54; out 0x42, AL; mov AL, 124 out 0x42, AL; in AL, 0x61; or AL, 0x3; out 0x61, AL; in AL, 0x61; and AL, 0xFC; out 0x42, AL; } I've also tried embedding this code into other languages like D, but it throws a win32 exception. What's wrong man? thx

    C / C++ / MFC c++ hardware question

  • Assembly code & binary numbers [modified]
    H Heinz_

    Hi, programs written with assembly code executes faster so, should we try to embed as much assembly code as we can in our pascal,c,c++,d code if we need speed? Can we and should we use binary numbers in c++ code so they are already translated and ready for use by the processor? Thx. -- modified at 20:46 Sunday 30th July, 2006

    IT & Infrastructure c++ delphi performance question

  • Hexadecimal Numbering System
    H Heinz_

    Cool man. Thanks, it's all in there, make sure you check 'The Simpsons' secret at the Cultural Reference, i really had no idea and is quite interesting. But still don't know were babies come from. :-D Bye.

    IT & Infrastructure question html

  • Opinion: Registry vs. Config file
    H Heinz_

    Now days i use xml to store configuration data, also i use a lot of binary files to store private and encripted data.

    IT & Infrastructure visual-studio windows-admin xml

  • Hexadecimal Numbering System
    H Heinz_

    Hi, i was reading about computers numeric systems and found that in the hexadecimal system, numbers can contain only four bits (nibble) then i read that hex numbers begins with $. I have the following questions regarding to this: 1)Why can i just do $1234A? 2)Why and how html assign hex numbers to colors in the form FF AA CC? 3)Why html color numbers begin with a #? 4)Are these html codes real hexadecimal numbers? 5)I have seen various hex nums in the format 0x123, what are these numbers? 6)I have seen in VB6 hex numbers in the format &H56, what are these numbers? 7)Is this interupt or port or whatever '4c00h' i saw in a assembler code an hex num? 8)Ho are we? 9)Where do we come from? 10)Where babies come from? If someone can answer these basic question please.

    IT & Infrastructure question html

  • Get Data Vertically From Clone Tables
    H Heinz_

    Cool man, thanx.

    Database question database help tutorial

  • Get Data Vertically From Clone Tables
    H Heinz_

    Hi, i don't know if is possible to do this: I want to obtain by a single query, values from 2 identical tables, ok, i can do a query from multiple tables and that will return values with no problem BUT these values are returned horizontally but how can i get these values vertically, i hope you understand the terms horizontally and vertically. If you think what i'm trying to do, is to execute 2 queries in 1. Example: select t1.col1, t2.col1 from table1 as t1, table2 as t2 -> 1, 2 -> 4, 7 -> 8, 9 but how can i get this? -> 1 -> 2 -> 4 -> 7 -> 8 -> 9 or this -> 1 -> 4 -> 8 -> 2 -> 7 -> 9

    Database question database help tutorial

  • Why can't use 2 DataReader with same connection
    H Heinz_

    Hi, i used the wrong word but you know what i mean, thanks for the link.

    Database question

  • Return 0 when no rows [modified]
    H Heinz_

    Thanx man. You really did it! thanx. I was reading mysql 5 manual and there's a ISNULL(expression) function but it returns 1 if the expression is null and 0 if not null (the inverse of what i need), but, thank god there's also a IS NOT NULL wich return 1 when not null and 0 when null, so i have now many ways to acomplish my objective. [ADDED] Reading about COALESCE() in mysql 5, and it works in a different manner than the normal ISNULL for MS SQL SERVER and others...COALESCE does not replace any null values nor it has a fixed return value, COALESCE() in mysql takes a list of values as a parameter and returns the first Not NULL value and returns NULL if any of the values in the list are not null, ie: mysql> SELECT COALESCE(NULL,NULL,1,'hello','world',25); -> 1 mysql> SELECT COALESCE(NULL,NULL,NULL); -> NULL So, all i have to do in my case is: COALESCE(mycolumnvalue,0) and if the query returns mycolumnvalue null then it will return 0. Bye, -- modified at 14:52 Tuesday 18th July, 2006

    Database question database mysql

  • Why can't use 2 DataReader with same connection
    H Heinz_

    Understood. I was trying to use only one connection to gain performance but now i replaced the second connection with a subquery in a command of the original connection, check this tasty and parameter rich query: "select SUM(t1.total - COALESCE(t2sum,0)) from ventas as t1 left join (select venta, SUM(cantidad_pagada) as t2sum from pagos_ventas where fecha_pago='" + CDC.Global.SetDBdate(hoy) + "' and metodo_pago<>1 and metodo_pago<>7 group by venta) as t2 on t2.venta=t1.id where t1.nula=0 and t1.pagada=0 and t1.fecha='" + CDC.Global.SetDBdate(hoy) + "'" Bye. -- modified at 15:29 Tuesday 18th July, 2006

    Database question

  • Return 0 when no rows [modified]
    H Heinz_

    Hi, you're right, there's a inner join inside my query, check it out, hope you understand the query and the problem: select SUM((t1.valor + t1.total) - t2sum) from consultas as t1 inner join (select consulta, SUM(cantidad_pagada) as t2sum from pagos_consultas where fecha_pago='2006-07-05' group by consulta) as t2 on t2.consulta=t1.id where t1.nula=0 and t1.pagada=0 and t1.fecha='2006-07-05' I had no idea about left and right join so i went to http://www.w3schools.com/sql/sql\_join.asp and took a read, the left join is the one for me! but this will return NULL in the second table when there're no matches and if you look at my query in "(t1.valor + t1.total) - t2sum" i do a " - " operation and i cant reduce a number with a null value or can i? i must replace that null for a 0. Thanx man. -- modified at 15:42 Monday 17th July, 2006

    Database question database mysql

  • Why can't use 2 DataReader with same connection
    H Heinz_

    Hi, i just did it but that second connection is what i have been trying to avoid. I remember that with ADODB in VB6 i was able to do multiple command and reads from the same connection. Thanx, it works this way anyway.

    Database question

  • Why can't use 2 DataReader with same connection
    H Heinz_

    That's it, Why can't i use 2 DataReader with same connection? How can i do multiple queries from the same connection. Thanks.

    Database question

  • numeric data type value
    H Heinz_

    Check out your decimal separator. Try to use ',' instead of '.'

    Database help question

  • Return 0 when no rows [modified]
    H Heinz_

    Hi, how can i return a 0 if my query returns no results? I'm trying to do this because i have a subquery inside a query but if the subquery returns no values then the main query also returns nothing. I'm using MySQL 5. Thanks in advance. -- modified at 20:24 Saturday 15th July, 2006

    Database question database mysql
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups