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
R

RalfPeter

@RalfPeter
About
Posts
79
Topics
55
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ajax/php issue
    R RalfPeter

    Nope. It now enters the ajax code, but does not access the php code. Thx for the tip.

    ralf.riedel@usm.edu

    JavaScript javascript help css php html

  • ajax/php issue
    R RalfPeter

    Can someone please help me with this code by looking over it for something obvious? The problem seems to be that the embedded JavaScript code is not being executed and, therefore, the PHP code is also skipped. Both, the HTML and the PHP files are in the root directory.

    html/js:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <title>jQuery AJAX test form</title>
    <script src="js/jquery.min.js"></script>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <script src="js/bootstrap.min.js"></script>
    </head>
    <body>
    <div class="container">
    <!-- Contacts -->
    <div id="contacts">
    <div class="row">
    <!-- Alignment -->
    <div class="col-sm-offset-3 col-sm-6">
    <p> </p>
    <p>Some header message here</p>
    <p> </p>
    <form name="contact" class="well" id="contact">
    <legend>Contact Form</legend>
    <div class="control-group">
    <div class="controls">
    <input type="text" class="form-control" placeholder="Name" id="name" />
    <p class="help-block"></p>
    </div>
    </div>
    <div class="control-group">
    <div class="controls">
    <input type="email" class="form-control" placeholder="Email" id="email" required/>
    </div>
    </div>
    <div class="control-group">
    <div class="controls">
    <textarea rows="10" cols="100" class="form-control" placeholder="Message" id="message" style="resize:none"></textarea>
    </div>
    </div>
    <div id="success"> </div>
    <button type="submit" class="btn btn-primary pull-right" id="submit">Send</button>
    <button type="reset" class="btn btn-default pull-right" id="res"

    JavaScript javascript help css php html

  • C# ASP.NET TreeView control
    R RalfPeter

    Will do. Thx, Ralf

    ralf.riedel@usm.edu

    C / C++ / MFC csharp asp-net sysadmin tutorial question

  • C# ASP.NET TreeView control
    R RalfPeter

    Hi all, I am trying to find out how to check the 'check' state of a node in a TreeView control using C# in an ASP.NET application. Basically, I have a TreeView control that shows checkboxes. The user makes a selection which I want to store in a session variable upon a 'submit' button click. I use a 'TreeView.Node.Checked' statement to verify whether the user selected that node. This, however, does not work because the selection is made at the client side and when it gets posted to the server, the 'TreeView.Node.Checked' statement, whether selected or not, will always return 'false' for any node. Does anyone have a solution for this? Thx, Ralf

    ralf.riedel@usm.edu

    C / C++ / MFC csharp asp-net sysadmin tutorial question

  • updating status bar
    R RalfPeter

    Using MFC and in CMainFrame() I have the following code. That's all I have for code handling the status bar. void CMainFrame::UpdateStatus(UINT nPane, CString str) { this->m_wndStatusBar.SetPaneText(nPane, str); }

    ralf.riedel@usm.edu

    C / C++ / MFC database question announcement

  • updating status bar
    R RalfPeter

    Hi folks, Got a Q re updating text on a status bar after changing focus from an application. I have a program I wrote that updates a database and shows the numbers of records processed on the status bar. When I change focus from that program the counter stops and when I subsequently go back to it, the numbers of recds processes stay frozen. What can I do to update the status bar once the program regains focus? Thx, Ralf.

    ralf.riedel@usm.edu

    C / C++ / MFC database question announcement

  • Mainframe icon in MSDS 2005
    R RalfPeter

    Hello, I am trying to change the icon in my main appln window from the default (MFC icon) to something else. Back in the days of the MSVC 6 version, there was an option to set the mainframe icon to 16x16 bits, which would do what I'm trying to accomplish. In v. 2005 there does not seem to be a way to change the icon from 32x32 to 16x16. Or is there? Can anyone help me w/ this? Thx, Ralf.

    ralf.riedel@usm.edu

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

  • reading text into CString
    R RalfPeter

    Actually, my question is not that one. Sorry about the confusion. I was asking how to capture a string from the active child. I think I'd have to have a pointer to that child and somehow read its contents. Once I have that taken care of, then yes, I'd use CString's methods. Thx, Ralf.

    ralf.riedel@usm.edu

    C / C++ / MFC c++ tutorial question

  • reading text into CString
    R RalfPeter

    Actually, my question is not that one. Sorry about the confusion. I was asking how to capture a string from the active child. I think I'd have to have a pointer to that child and somehow read its contents. Once I have that taken care of, then yes, I'd use CString's methods. Thx, Ralf.

    ralf.riedel@usm.edu

    C / C++ / MFC c++ tutorial question

  • reading text into CString
    R RalfPeter

    Hallo all, can anyone tell me how to read in a line of text into a CString variable in and MDI MFC appln? All I want to do is to parse a text line-by-line from the active child window into the variable. I have a very simple text editor where the view is inherited from CEditView. thx, Ralf.

    ralf.riedel@usm.edu

    C / C++ / MFC c++ tutorial question

  • pointer to active document
    R RalfPeter

    One type only

    ralf.riedel@usm.edu

    C / C++ / MFC help visual-studio question

  • pointer to active document
    R RalfPeter

    Hi folks, I’ve got a problem getting a pointer to the active document from an MDI. The code below works fine for an SDI, but when I run the binary of the MDI it throws an unhandeled exception error upon trying to access data from the document. When I’m in the editor, however, the intellisense works just fine, ie, when I type ‘pDoc->’ it retrieves the right info from the current document. My question is whether I have to do any additional thing to get the statement below to work for MDIs and what that statement might be. CMtxDoc *pDoc = (CMtxDoc *) ((CFrameWnd*) AfxGetApp()->m_pMainWnd)->GetActiveDocument(); CString szHold; pDoc->m_nDim = 2; //exception thrown here Thx, Ralf.

    ralf.riedel@usm.edu

    C / C++ / MFC help visual-studio question

  • STL Qs
    R RalfPeter

    Hi all, could any one help me with an STL problem? the code below throws an assertion error [_SCL_SECURE_VALIDATE(this->_Mycont != NULL); from vector.h, line 117] when executing line #5 only after executing line #4. Line #5 works fine as long as the 'if' block is not entered. I am using MSVC 2005 and did not have this problem with the previous version. Is there any change to the way STLs are handled now? Thx everyone, Ralf. 1 ivFKey = szvCopy.begin(); 2 while (ivFKey != szvCopy.end()) { 3 if (*ivFKey == szFKey) //delete all equal; what's left are 0-catches 4 szvCopy.erase(ivFKey); 5 ++ivFKey; 6 } ralf.riedel@usm.edu

    C / C++ / MFC help c++ graphics question announcement

  • CString error
    R RalfPeter

    Thanks for the replies. Got the code up and running. ralf.riedel@usm.edu

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

  • CString error
    R RalfPeter

    Hi all, I've recently gotten VC++ 2005 and am having problems with the CString class. Here three examples and the errors I'm getting: 1. AfxMessageBox("some text"); //none of the 2 overloads could convert all the argument types 2. void MyFunction(int i, CString str); ... MyFunction(1, "some text"); //cannot convert parameter 2 from 'const char [4]' to 'CString' but CString str; str = "some text"; MyFunction(1, str); //works fine 3. Also, the declaration CString str = "some text"; does not work. The error message is: error C2440: 'initializing' : cannot convert from 'const char [26]' to 'ATL::CStringT' 1> with 1> [ 1> BaseType=wchar_t, 1> StringTraits=StrTraitMFC_DLL 1> ] 1> Constructor for class 'ATL::CStringT' is declared 'explicit' 1> with 1> [ 1> BaseType=wchar_t, 1> StringTraits=StrTraitMFC_DLL 1> ] Anyone can tell me if there was a change to the CString class? Thx, Ralf. ralf.riedel@usm.edu

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

  • Dialog box error
    R RalfPeter

    Hi all, I am trying to instantiate a dialog box and keep getting the error message 'too few parameters, expected 2' the offending piece of code is: void CFisheriesView::OnAlmforeignkeys() { COpenDB open; //ok open.ALM(); //ok CALMFKeyDlg dlg; //bombs out here dlg.DoModal(); } Anyone can give me some pointers? Thx, Ralf. ralf.riedel@usm.edu

    C / C++ / MFC help question

  • Custom data iterator
    R RalfPeter

    Does anyone know how to declare an iterator to, say, a struct variable? Here's an eg of a struct I declared outside a function: struct vStruct { CString szString; int nInt; double dDouble; } v; Then, inside the function I have: std::vector vStruct; And the problem is when I do this: std::vector::iterator iStruct; Thx, Ralf. ralf.riedel@usm.edu

    C / C++ / MFC graphics help tutorial question

  • STL
    R RalfPeter

    Can anyone explain to me how to use struct variables w/ STL? I generated a struct variable and need to use it in a vector template. Thx, Ralf. ralf.riedel@usm.edu

    C / C++ / MFC c++ graphics tutorial question

  • Image scaling
    R RalfPeter

    Thanks for all that discussion. I'll try both, one for a quick and dirty image processing and the other for situations when a more accurate processing is justified. Best, Ralf. ralf.riedel@usm.edu

    C / C++ / MFC algorithms question

  • Image scaling
    R RalfPeter

    Can anyone direct me to a source that explains ways to code 'zoom ins and outs'? What I basically need is an algorithm to blow up or shrink down an image by clicking a button or, better, by rubberbanding an area of the image. Thanks, Ralf. ralf.riedel@usm.edu

    C / C++ / MFC algorithms 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