Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6976593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:31:00+00:00 2026-05-27T17:31:00+00:00

I develop a Win32 C++ cgi app for windows and linux and start from

  • 0

I develop a Win32 C++ cgi app for windows and linux and start from scratch.
I use CgiCC as lib and Visual Studio 2010 as IDE.

How can I debug that? When I instanziate my cgicc class the program holds and waits for CGI input I guess.

How can I set up an environment for my CGI input?
I set some environment variables like QUERY_STRING.
But I have no idea how to provide the values my cgi app would get while running on a webserver.

EDIT:
I am almost there.

  1. I captured the traffic while browsing and wrote that content to a file.
  2. Then I redirected stdin to that file: “< input.txt” as debug command line arguments in visual studio.
  3. I set some environment variables under windows like CONTENT_LENGTH and CONTENT_TYPE.

after that I can read some content from my input like this:

cgicc::Cgicc cgi;
string u = cgi("user");

but i get an exception (reading from unallocated memory and exceptions like that) while doing this:

vector<FormFile, allocator<FormFile>> files = cgi.getFiles();

somehow not everthing if loaded correctly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:31:00+00:00Added an answer on May 27, 2026 at 5:31 pm

    Solved it by myself:

    1. Build cgicc with the same visual studio version that I compile my project with.
    2. Build cgicc as a static library instead of a dynamic library.
    3. Setting the preprocessor define CGICC_EXPORTS in my project which activated __declspec(dllexport).

    Then it worked!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I develop a Win32 application in Visual Studio 2008 (C++). It runs fine in
I develop commercial unmanaged C++ app on Visual Studio 2008, and I want to
I develop a c++ CGI program that runs under Windows and Linux. This program
I use Visual Studio to develop unmanaged C++ apps for a living. Is there
i want to develop an app for manage the desktop in windows using C#
I install Visual C++ 2008 Express to develop code using native Win32 API. However,
To Develop using the Microsoft robotics studio, do I have to use only Microsoft
I'm looking to develop a Win32 desktop app - a one off, for a
i need to develop win32 GUI in c++ (plain win32 windows.h thing ) ,
I have a Visual Studio 2010 project with C++ code that I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.