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
L

LizardWiz

@LizardWiz
About
Posts
17
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to formulate a file upload mime type for an ASPX page?
    L LizardWiz

    I am not formulating this post using an HTML page. I am formulating it in C++ from a windows service. When I use the syntax provided to me in RFC 1867,the ASPX page does not add the parameter into the form parameters collection. So my question is, how do I get the ASPX page to add the parameter into the forms parameter collection? And how can I access the extended parameter attributes?

    ~LizardWiz()

    ASP.NET help html sysadmin windows-admin xml

  • How to formulate a file upload mime type for an ASPX page?
    L LizardWiz

    No I mean upload. Isn't there something in HTML that looks like this < INPUT type = "file" >?

    ~LizardWiz()

    ASP.NET help html sysadmin windows-admin xml

  • How to formulate a file upload mime type for an ASPX page?
    L LizardWiz

    I am not sure whether or not this is in the right forum. Feel free to move it if it is not. I am having an issue formulating a form based file upload in HTML to an ASPX page on an IIS server. I am referencing RFC 1867 to get the appropriate syntax, and I guess RFC 1521 that outlines the MIME data streams. Here is the issue, the post itself is being formulated and works fine as long I do not add the filename="" parameter to the end of the content-disposition header. The second that filename="" parameter gets added to the content-disposition header for that particular parameter the ASPX page no longer recognizes it in the parameters collection. Is there something that I am doing wrong here? Here is a sample of the syntax being sent. WORKS: Content-Disposition: form-data; name="" DOES NOT WORK: Content-Disposition: form-data; name=""; filename="" Also, once this gets working I just have a couple other questions... #1) What should be the "proper" Content-Type parameter value for an XML file? Content-Type: text/XML? #2) If I send the Content-Transfer-Encoding: base64 parameter, will the ASPX page barf? #3) I am assuming that I can get the extended field parameter attributes somehow through ASPX, is this so? Please help...

    ~LizardWiz()

    ASP.NET help html sysadmin windows-admin xml

  • C# 'static' variables on the web?
    L LizardWiz

    Does anyone know what exactly the term 'static' means in reference to web apps? Does this mean that there is only a single instance of the variable within the DLL itself and everyone who runs an instance of a particular page can modify the variable? If this is the case then how does one hold values in page level variables and have them maintain there value when the page posts back (for autopostback objects...)? Thanks in advance for anyone with a good explanation. ~LizardWiz()

    C# csharp question

  • Get time zone info for a network computer.
    L LizardWiz

    Hmmmmm. It is a start I guess. But the structure only seems to return the current bias of the time zone from GMT time, I don't really know if I am daylight savings time or not. I guess I can get the current date of the machine in GMT time (which is what that function seems to return), then convert it to a local time for my machine, then determine if its daylight savings time or not, then determine the appropriate time zone based on that bias amount... I am lucky I guess that we are only looking at Time Zones in the US... But won't Arizona get messed up in daylight savings time? Anyhow thanks for your help. If you have a better idea please let me know. ~LizardWiz()

    C / C++ / MFC sysadmin question

  • Get time zone info for a network computer.
    L LizardWiz

    Can anyone tell me if I can get the time zone info for a computer on a local network? Please tell me if this is possible. Thanks, ~LizardWiz()

    C / C++ / MFC sysadmin question

  • Question for an expert Transact SQL GURU!
    L LizardWiz

    WOW! Works great! Thanks alot....I thought I was a T-SQL GURU but I acquiesce the title to you. ~LizardWiz()

    Database database question sharepoint sql-server sysadmin

  • SQL-DMO
    L LizardWiz

    I typically use ADO to run stored procedures and sql statements. I use DMO to write administrative utilities that run backups and script objects...etc. I would agree with your assessment, at least from my perspective. ~LizardWiz()

    Database database question c++ sql-server sysadmin

  • Question for an expert Transact SQL GURU!
    L LizardWiz

    Has anyone ever figured out a way to use "sp_executesql" on a stored procedure that returns an output parameter. It seems as though when you execute "sp_executesql" SQL server compiles the syntax using a different profile. I can't seem to access any variables declared in the SQL string (even using an optional declaration parameter) nor can I access any variables declared within a stored procedure from within the "sp_executesql" string. It just doesn't seem possible. Anyone got any creative ideas? example: sp_executesql "exec sp_name @varname output" or: sp_executesql "exec sp_name @varname output", @varname int ~LizardWiz()

    Database database question sharepoint sql-server sysadmin

  • Is there a way to detect a debug build?
    L LizardWiz

    how about #ifdef _DEBUG /* do something here */ #endif is that what you were asking? ~LizardWiz()

    C / C++ / MFC c++ debugging question announcement

  • Winsock2 help please!
    L LizardWiz

    I wrote a winsock service that spawns a new thread on the "accept" function. Sometimes it seems that when I "recv" the client doesn't seem to have closed the connection gracefully? The service continues to peg the CPU at 100% (even though I have checked for SOCKET_ERROR and byte size of 0 returned from "recv"). My question is.....(code is "pseudo-pseudocode") Can I rely on the following to work properly considering the problems that I have found with closing the socket on the client end? int nTimeout = 1000; nError = setsockopt(client, SOL_SOCKET, SO_RCVTIMEO, (char*)&nTimeout, sizeof(nTimeout)); Or, is something like this going to be more reliable (albeit pretty ugly...), where the "accept" calls a timer thread which in turn calls the client thread until it times out(as follows)? UINT ClientTimerThread(LPVOID pParam) { CWinThread* thread; LPDWORD exitvalue; if (WaitForSingleObjectEx(thread = AfxBeginThread(ClientThread,pParam), 10000, false) == WAIT_TIMEOUT) { socket s = (SOCKET)pParam; closesocket(s); GetExitCodeThread(thread, exitvalue); TerminateThread(thread, (DWORD) exitvalue); } return 0; } Any advice would be greatly appreciated... ~LizardWiz()

    C / C++ / MFC question help

  • MAPI Help Please!
    L LizardWiz

    This is sort of it, except that I am also attaching a file with a MapiFileDesc structure... LPMAPILOGON lpfnMAPILogon; LPMAPISENDMAIL lpfnMAPISendMail; LPMAPILOGOFF lpfnMAPILogoff; LHANDLE lhSession; HMODULE hMAPILib; MapiRecipDesc sender = { 0, MAPI_ORIG, "anyone", "anyone@anywhere.com", 0, NULL }; MapiRecipDesc recipient = { 0, MAPI_TO, "someone@anywhere.com", NULL, 0, NULL }; MapiMessage message = { 0, "Some subject", "Some message text", NULL, NULL, NULL, 0, NULL, 1, &recipient, 0, NULL }; hMAPILib = LoadLibrary("either MAPI32.DLL or MSOE.DLL depending on MSO or MSOE"); lpfnMAPILogon = (LPMAPILOGON)GetProcAddress(hMAPILib, "MAPILogon"); lpfnMAPISendMail = (LPMAPISENDMAIL)GetProcAddress(hMAPILib, "MAPISendMail"); lpfnMAPILogoff = (LPMAPILOGOFF)GetProcAddress(hMAPILib, "MAPILogoff"); (*lpfnMAPILogon)(0, NULL, NULL, 0, 0, &lhSession); (*lpfnMAPISendMail)(lhSession, 0, &message, MAPI_DIALOG, 0); (*lpfnMAPILogoff)(lhSession, 0, 0, 0); FreeLibrary(hMAPILib); ~LizardWiz()

    C / C++ / MFC question help

  • MAPI Help Please!
    L LizardWiz

    When I use the MAPISendMail command with the MAPI_DIALOG flag it brings up the dialog in Outlook (loading mapi32.dll library) and Outlook Express (loading msoe.dll library). If the mail client is closed, the message will send in Outlook Express, but will sit in the outbox of Outlook until the program is opened and the send/receive button is pressed. How can I change this behavior? I can't create a new process of outlook.exe because I do not know if the mail has been sent before killing the process... Help please, last time I submitted this question I only got one response (which unfortunately did not work out). Thank you in advance... ~LizardWiz()

    C / C++ / MFC question help

  • MAPI Help...
    L LizardWiz

    Thanks for the reply but unfortunately the people who I am doing this project for want the Outlook message email dialog to come up (the one with the button), hence the need for the MAPI.DLL...unless someone has a better idea. Too bad your a Canucks fun but I am willing to overlook that fact because you are a hockey fan...Go Kings! ~LizardWiz()

    C / C++ / MFC question help

  • C++ programming problems
    L LizardWiz

    Is the problem that mwAarray could possibly be misspelled? Should it be mwArray? That is probably your problem I think although I am not sure if mwArray is a compatible type with mxArray_tag. All of your problems seem to be stemming from a misspelled var type though. ~LizardWiz()

    C / C++ / MFC c++ help question

  • MAPI Help...
    L LizardWiz

    When I use the MAPISendMail command with the MAPI_DIALOG flag it brings up the dialog in Outlook (loading mapi32.dll library) and Outlook Express (loading msoe.dll library). If the mail client is closed, the message will send in Outlook Express, but will sit in the outbox of Outlook until the program is opened and the send/receive button is pressed. How can I change this behavior? I can't create a new process of outlook.exe because I do not know if the mail has been sent before killing the process... Help please. Thank you in advance... ~LizardWiz()

    C / C++ / MFC question help

  • How to identify what process is holding a file open.
    L LizardWiz

    Does anyone know how to id what specific process has a particular file open? Is there a utility in the OS like 'lsof' or a utility with the MS compilers? If not can I do this programatically? Any help would be apprciated. BTW. The reason I am doing this is because the network admin has a open file called 'hfind.tmp' on a SQL Server machine. Is this file possibly an indexing or hashtable for full text searches in SQL Server? ~LizardWiz()

    System Admin sysadmin database sql-server tools help
  • Login

  • Don't have an account? Register

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