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
A

A R 0

@A R 0
About
Posts
15
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to use MS Media Player Active-x control??
    A A R 0

    The backslash should be typed twice: CString Movie="C:\\mymovie.avi"; ...

    C / C++ / MFC question tutorial

  • File Uploading Scripting
    A A R 0

    Troy thank you for taking the time. I am working without a browser, but just at the communications level (i.e. no user interface at all). On the other hand, I'm not trying to get a file from a user's machine. This is the scenario: I'm running an e-commerce site server. In this sense, I have my own server-side processes. One of my services is a report file generator, so when one of my users have been logged and requested this report, my server-side program creates this report and presents it in a PDF format. However, there is a special client which needs that my site (back-end process) could upload this report to his server. Unfortunately, he doesn't know anything about FTP. In his site, once you have logged in, there is a form which presents this to type or through the browse button specify the file to be uploaded. Okay, with this in mind, what I want to do is just automate this process, to eleiminate the need of loggin with username/password and go step by step just to upload the file. Up to this point, my program loggs in and passes every page perfectly (again, without a browser) but in this specific page it fails. I do not know how to send the content of the file through the HTTP request. If you know some literature about multipart/form-data submissions I will appreciate teh reference. I develop all my server-side programs in C++, and just the client-side is JavaScript, DHTML & HTML. Thank you again.

    Web Development question design sysadmin help tutorial

  • File Uploading Scripting
    A A R 0

    Yes Mark, that is exactly what I need to do. Send the contents of the file in the HTTP address request, but in an automated way. To make myself clear, let's say that I need to send my users one page after the file has been uploaded in the server, trying to "emulate" a user's keyboard typing. I already read the Form Submission topic, and all about the element specification. Thank you.

    Web Development question design sysadmin help tutorial

  • File Uploading Scripting
    A A R 0

    Hello guys, I recently read a question in the forum regarding a server-side program to upload a file. I have a question from the Client side point of view. I'm developing an application to automate the filling of a particular form. This is a program in which there is no user interface at all (i.e. browser) but just communications (tcp/ip and http). The problem is that there is a field which is an input element of type file. As you know, the value's attribute of this element is read-only from the scripting point of view (there is no way to fill this field's value through a scripting function). My question is, does somebody knows how to tell the server application that there is a file ready in a specific location without typing in the field manually? In other words, there is a way to set the value of this element through a function?. Thanks much. A.R.

    Web Development question design sysadmin help tutorial

  • verify existency of URL ( with proxy )
    A A R 0

    Have you tried? try { ... pIH = InternetOpenURL(...); ... } catch (InternetException* pEx) { ::MessageBox(...); // Handle your exception }

    C / C++ / MFC help c++ html

  • "Playing time" of a sound and video file?
    A A R 0

    You can do it through DirectShow. There is one interface (sorry I can't remember the name at this time, but you can find it very easily in the DirectX SDK documentation) that you can query through the IFilterGraph interface, and use the methods to get the time of the media file.

    C / C++ / MFC c++ question

  • Help please
    A A R 0

    Hey! congratulations for your third !!! Is always a bless :)

    C / C++ / MFC c++ ruby com data-structures help

  • InstallShield !!!
    A A R 0

    I would say that the problem is related to an issue involved on trying to copy and then delete the specified file from the source media type. I am saying this based on the error message "Can not move Cry32.ocx". This usually happens when in the Files tab of InstallShield, your file is a "link" rather than a "copy". Why don't you try first to check this. The problem with a "link" is that InstallShield creates or generates a setup based on a reference link to the file in question rather than a copy from the file itself. In your computer works because the "link" could be resolved perfectly, but not in another environment, even if the target computer has already installed the Crystal components. I used InstallShield for some time, and now I have changed to MSI. This is the Windows Installer SDK. It is far powerful than any other installation tool I have seen, because the core is a service of the operating system. That means, that your code could be 100% resilient. This is such a great feature! On the other hand, it has the install on demand characteristic plus the ability to provide your own UI dialogs. Well this is my personal point of view, and as always, every one will have their favorite tools, and perspective. So maybe you want to try the tools refered by the other guys and at the end make your own decision.:|

    C / C++ / MFC com game-dev help question c++

  • Parsing Text.. Beginner Question.
    A A R 0

    Your last question is related to the features of Regular Expressions, so to give you an idea on how they works, open your HTML in any editor that has the capability of search/replace regular expressions (like CodeWright). Then execute a replace like the next one: Search For: <[^>]*> Replace With: And check the "regular expression" check box, as well as the "replace all" check box. After that, you will be able to judge the advantages of using regular expression parsers.

    C / C++ / MFC question html json tutorial learning

  • Error when firing SetTimer in a Modeless Dlg
    A A R 0

    Rob, It seems that you have some re-entrancy code and a very bad function call. You are calling your function (as I said in my previous message) inside of your function, creating a recursive call with no exit at all. Let me be more specific ... In your function OnTimer() you have a line at the end that says "CAdd1Dlg::OnTimer(nIDEvent)" and this is the horrible bug. Instead you have to call the base method, i.e. CDialog::OnTimer(nIDEvent). On the other hand, the timer has been set to signal every one second, and in the code where you are handling this event, there is no way to stop the messaging system sending the signal every one second, and here is where meanwhile you are decrementing your variable and formatting your display, another call has been made and so on. One good rule is if your timer's handler do a lot of work and the timer's period is short, you have to tell the messaging system "give me a break". So in your code, you can use something like: void CAdd1Dlg::OnTimer(UINT nIDEvent){ switch (nIDEvent){ case IDC_S_TIMER1: KillTimer(IDC_S_TIMER1); // Stop the timer //decrement the count iS --; //format and display the count m_ctlTime1.Display(iS,iM,iH,iD,(CString)m_strTime1="%D:%H:%M:%S"); UpdateData(FALSE); SetTimer(IDC_S_TIMER1, 1000, NULL); // Restart the timer break; } //UpdateData(FALSE); <=== Make this call before. //CAdd1Dlg::OnTimer(nIDEvent) <=== X| OOPS! This is the bad guy in your code CDialog::OnTimer(nIDEvent); // Use this instead. } I hope this helps Au revoir.

    C / C++ / MFC data-structures debugging regex help question

  • Mini School Project
    A A R 0

    What type of help do you need Ramzirex? Please be specific, and post direct questions. :)

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

  • Error when firing SetTimer in a Modeless Dlg
    A A R 0

    The Stack Overflow problem usually arises when you are (unaware) calling the same function several times as fast as you can, until the stack gets full X|. So, what are you doing inside of your OnTimer() function? Could it be possible that you are executing this same function (kind of recursive call, but without an exit condition)? On the other hand, where are you creating the timer? Could you please show us some of your code to handle the IDC_S_TIMER1 timer's id in your OnTimer() function?

    C / C++ / MFC data-structures debugging regex help question

  • Mediaplayer
    A A R 0

    One efficient way to do this (I'm sorry I shouldn't use the word "effcient" because it carries out endless debates:|). One way to do this is through a custom based COM filter using DirectShow (now completely integrated in DirectX 8.x). If you are planning to use this as a one time tool, you could avoid the code involved in plugging the filter into the GraphFilter of DirectShow and use the GraphEditor instead. The filter needs to get a stream input of the sample video in order to create the file that you want (i.e. bitmap). For instance, // // Copy the input sample into the output sample // Then transform the output sample 'in place' // HRESULT MyFilter::Transform(IMediaSample *pIn, IMediaSample *pOut) { HRESULT hr = Copy(pIn, pOut); if (FAILED(hr)) { return hr; } return Transform(pOut); } // Transform // // Create a bitmap from source and let dest be identical // in order to continue the process (playing). // HRESULT MyFilter::Copy(IMediaSample *pSource, IMediaSample *pDest) const { ... } There is much more work involved in developing a DirectShow filter. I hope this help you out.

    C / C++ / MFC question c++ com graphics

  • Efficient Code?
    A A R 0

    Thank you Igor for your response. In my original post, I was saying that I didn't use any data structure like the stack because it's supposed to save memory and be efficient (for efficient code, my personal view is that it solves the problem in less cycles of the processor in question, and saves as many resources as it can). Your code is very elegant and effcient (from my own perspective), but I'm affraid that it would be rejected anyway based on the fact that it is using the system's stack for the recursion (Alas, a data structure), and dereferencing the double pointer takes some more time than dereferencing a single pointer. I could imagine that this will be the response from the person who asked me to do such a function. Just to be fair, I had requested to code another function related to binary trees, and guess what? I used recursion but had the same feedback X|

    C / C++ / MFC data-structures c++ performance question

  • Efficient Code?
    A A R 0

    I have recently been asked to code a function to reverse a single linked list. The code that I provided is the next: void Reverse(Link *pList) { Link *pH = NULL; Link *pT = pList; while (pList) { pList = pList->Next; pT->Next = pH; pH = pT; pT = pList; } pList = pH; } I didn't use any data structure (like a stack) to reverse the list because I been said that it should save memory and be very efficient. Well, after showing my code and being reviewed I have been notified that the code works well but it shows a pretty basic skills in C++ :confused: I would like to know your opinion about it. Is there a more efficient code to reverse a single linked list? Do you agree in the fact that it shows very basic level of C++? I have been coding in C++ for 7 years and I have been evaluated before in C++ coding with a very high scores. I am just wondering if am I missing something? Thank you guys :cool:

    C / C++ / MFC data-structures c++ performance question
  • Login

  • Don't have an account? Register

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