We Moved over from an old AS/400 based system about 2 years ago, it had been around for almost 2 decades. With that we hired a slew of new staff, in their training one of them asked a question along the lines of: What do I do with these 50 pages of reports that print on my printer ever morning? they were told to shred them, they print every morning for "some reason" and nobody knew why.
jwalker343
Posts
-
If a process produces a report that nobody reads... -
Zombie ModeSo True... I've found that while coding late at night... there comes a point, where I stop "seeing" the code in my head... it just spills out into the computer... The next day, when i go back to look at it... i have no memory of writing entire methods, but they work perfectly!
-
Getting AppData Directory Pathwow, very helpful... explains why C++ is such a powerful language... it's almost as if the entire language can change pretty quickly depending on all of your own settings... that's crazy!! and the memory allocation seems understandable as well now that you explain it like that... basically if you specifically ask for new memory, you've got to deal with it yourself... Thanks a bunch MicroVirus... i'm looking to release my first CodeProject Article on this project in the coming months... i'll be sure to mention your help!
-
Getting AppData Directory Pathit did help significantly, i appreciate the explanation rather than a code dump... I'm still a bit confused about the TCHAR and WCHAR definitions... they seem to convert themselves... i guess these are one of those "C++ Macros" that i've been reading about? i figured i could just strcat() the strings in the same line, but i'm still trying to figure out C++ i've made the changes stated above, but i am now getting a "Debug Assertion Error" on my line:
delete [] strPath
i've figured out that an assertion error is similar to a conditioned break point... i've found the line of code in one of the C++ files: dbgdel.cpp
void operator delete(
void *pUserData
)
{
_CrtMemBlockHeader * pHead;RTCCALLBACK(\_RTC\_Free\_hook, (pUserData, 0)); if (pUserData == NULL) return; \_mlock(\_HEAP\_LOCK); /\* block other threads \*/ \_\_TRY /\* get a pointer to memory block header \*/ pHead = pHdr(pUserData); /\* verify block type \*/ \_ASSERTE(\_BLOCK\_TYPE\_IS\_VALID(pHead->nBlockUse)); \_free\_dbg( pUserData, pHead->nBlockUse ); \_\_FINALLY \_munlock(\_HEAP\_LOCK); /\* release other threads \*/ \_\_END\_TRY\_FINALLY return;
}
#endif /* _DEBUG */
the code looks like i've passed an invalid param to the delete function... should i not be disposing of this variable, it is not used anywhere else in my code as of yet? or is there another method for disposing of this var?
-
Getting AppData Directory PathGreat! that works perfect, the only issue is that now the MessageboxA shows a ton of chinese/gibberish characters at the front.. i'm assuming that these are the buffer characters? i'm new to C++ (in fact this is only my second attempt at C++)... counting "Hello World!"
-
Getting AppData Directory PathOk guys... i've been working on this section of code for about a week now and i'm giving up...can someone help me? I've got the basics down, but the code won't compile: Argument of type LPWSTR* is incompatible with parameter type of LPWSTR
//read in hotkey settings
// String buffer for holding the path. LPWSTR strPath\[ MAX\_PATH \]; // Get the special folder path. SHGetSpecialFolderPath( 0, // Hwnd strPath, // String buffer. CSIDL\_APPDATA, // CSLID of folder FALSE ); // Create if doesn't exists? LPWSTR appDataPath = \*strPath; \_tcscat(appDataPath, L"\\\\SSST\\Settings.ini"); MessageBox(NULL,(LPCTSTR)appDataPath, NULL, NULL);
-
how should i word this... and better...how should i do it?John Simmons / outlaw programmer wrote:
Of course, you're assuming I wanted to avoid being rude, or that I wasn't matter-of-factly posing a reasonable question
you don't think i have searched google?, i actualy assumed that the user answering the thread would have some more in depth knowledge other than "this is what its called..." there is no need to be rude, that only gives yourself a bad name.
-
how should i word this... and better...how should i do it?ah, i knew it must have a name!! that makes sense, and i have come to that conclusion, but i want to make it very advanced, and allow the user to have the ability for nested AND/OR clauses to produce SQL like this: WHERE (col1 = "a" OR ((col2="b" or col3 = "c") AND (col4="d")) is there an example of an ad-hoc query engine on codeproject, that i could look at?
-
how should i word this... and better...how should i do it?in a standard database-type system this is true, however the entire point of the application is moving files from one folder to either of two ending folders, so the datatable i mentioned is just a temporary one.
-
how should i word this... and better...how should i do it?ok, so here is what i am trying to accomplish, and i've had some "OK" ideas, but none seem to fit the bill exactly... Program Logic: i have a file, that will be read and parsed into a datatable (this is at runtime, columns are unknown & generated as the file as parsed... the number of columns can change..) then in my application, a certain set of criteria will be applied to that file, if col1 = "asdf", if col2 = "blue" if all the conditions are met, the file is moved to dir A, if the conditions are not met, the file is moved to dir B. Problem: the problem comes when the criteria are applied, basically i want the end user to be able to create their own criteria for the file, the end user will not know SQL so i was thinking some kind of graphical representation of the WHERE clause.... there are a couple of problems i've ran into: how would the user specify AND/OR to multiple conditions: (they can have infinite #)
(graphically represented:
IF col1 = "BLUE" AND
IF col2 = "Green" OR
IF col3 = "yellow"could render 2 sets SQL Where clauses:
- WHERE ((col1='blue' AND col2='green') OR col3='yellow')
- WHERE (col1='blue' AND (col2='green' OR col3='yellow')
my solution for this problem was to setup AND/OR condition groups:
Graphically represented:
IF all of the following are true
(
col1='blue'
col2='green'
)
OR
IF all of the following are true
(
col3='yellow'
)this is easy to represent graphically, but i can't find a good solution for storing it long term in the database... i'd rather not have to write an entire application to generate/parse SQL into this format does anyone have any ideas? / are the some code snippets available that do something similar?
-
Network Layout DesignThanks agian Alan for all your help, i think the proposed will work perfectly.
-
Network Layout DesignThanks Alan for the info: 1. I was under the assumption that running 2 SBS servers would cause problems: http://blogs.technet.com/b/sbs/archive/2007/10/04/debunking-the-myth-about-additional-domain-controllers-replica-dcs-in-an-sbs-domain.aspx[^] 1a. when running SBS2008 as my primary DC/AD/DNS i should be able to setup a Win2k3 server as a backup AD/DNS server and use the available features following this guide?: http://blogs.technet.com/b/rwagg/archive/2010/03/11/extend-your-server-2003-active-directory-schema-for-windows-vista-and-server-2008.aspx[^] 2. Following your advice, and looking at the smoothwall firewall, i would update the network config as follows: i have 2 WAN IP addresses from our ISP:
(Ext IP addy 1)
{net}-{modem}-{dumb Switch}=-{Smoothwall FW}-{unmanaged Switch}--{WLAN AP) < Wireless Clients
|| || || ||
|| (Wired Clients) (SBS08) (Win2k3 Backup AD/DNS)
||
||
{cheap Wireless Router} < Wireless Guests
(External IP Address 2)Thoughts or comments?
-
Network Layout Designok, we are attempting to add/update some functionality to our network and servers, and i have a view questions that i hope some of you brilliant people can help me with: currently we have an SBS2003 server setup with ~5 clients. After disputing the upgrade method, we decided to purchase a new Server with SBS2008. a couple of things we are looking at doing: 1. Create a Fail Over DC with the SBS2008 as Primary DC, use older server as Secondary DC. 2. Add Guest Wireless for clients. (reason this was posted here) these are my thoughts/questions: 1. Can we run 2 copies of SBS on the same domain? 1a. if not, can SBS2008 be primary DC, and a copy of Server 2003 Standard be Secondary DC? our budget is shallow, just barely enough to buy a decent server, so high-end networking is out the door. currently our network topology as is follows:
{Internet}-{Modem}-{SBS03}-{Unman. Switch}--{WLAN AP)<(Wireless Clients)
(Wired Clients)what i am thinking about doing is this:
{net}-{Modem}-{Unman. Switch 1}-{SBS08}-{Unman. Switch}-{WLAN AP)<(Wireless Clients)
|| (Wired Clients)
||
{Guest WLAN AP)<(Wireless Guests)with the Guest WLAN AP acting as a router, and the SBS08 acting as a Router. the Guest WAP would have a subnet: 192.168.100.0/24 and the SBS08 would have a subnet: 192.168.16.0/24 this way the SBS08 server would see all the traffic from the Guest Network as "Outside" or Internet Traffic, and we could protect our network from it with the firewall on the server. these are my thoughts/questions: 1. Can we run 2 copies of SBS on the same domain? 1a. if not, can SBS2008 be primary DC, and a copy of Server 2003 Standard be Secondary DC? 2. Will the proposed network topology be secure/good idea for a Small business?