Questions tagged [static-functions]
124 questions
-1
votes
1 answer
Static function for multiple files
Language : C
Environment : bare-metal
This program have many sub-modules. I hope in the functions of each sub-module can't not be visible/used by other sub-modules except that the functions are the API functions.
If the sub-modules only contains…
-1
votes
6 answers
Proper class definition and usage - thread safe - ASP.net
I wonder how to define a class properly and use it safely. I mean thread safely when thousands of concurrent calls are being made by every website visitor.
I made myself something like below but i wonder is it properly built
public static class…

Furkan Gözükara
- 22,964
- 77
- 205
- 342
-2
votes
1 answer
C++ must define as static constexpr double - cant initialize static non-integral variable inside Class
// Ive found useful information in other questions relating to static variables and their initialization. I found a work around (didnt feel like solving this with a separate file as suggested here: Initialize static variables in C++ class?), but…

Samuel Franco
- 11
- 2
-2
votes
1 answer
C++ class static member function calling error
I write a project with visual studio. In the project I build a class called CSimApplianceDlg which has two members:
static UINT RecvDataFrame(LPVOID pParam) and CSerialPort m_Port
class CSimApplianceDlg : public CDialog
{
//…

pellyhawk
- 86
- 1
- 6